SKBIIDI AIJAIOEGEAIGHEAIO
This commit is contained in:
@@ -54,10 +54,10 @@ class Send_data_stocked:
|
||||
'image': (image_path, open(image_path, 'rb'), 'image/jpeg')
|
||||
}
|
||||
try:
|
||||
#print(data)
|
||||
print("Datas are : ",data)
|
||||
#print(files)
|
||||
response = requests.post(self.url, headers=self.headers, data=data, files=files)
|
||||
print(response)
|
||||
print("Answer from server is : ",response)
|
||||
response.raise_for_status()
|
||||
response_data = response.json()
|
||||
return response_data
|
||||
|
||||
Reference in New Issue
Block a user