Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -760,7 +760,7 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
760 |
byt_headers = {
|
761 |
"Authorization": f"Bearer {g_auth}"
|
762 |
}
|
763 |
-
upload_response = requests.post("https://api.bytescale.com/v2/accounts/12a1yeH/
|
764 |
if upload_response.status_code == 200:
|
765 |
response_json = upload_response.json()
|
766 |
image_url = response_json.get('url')
|
|
|
760 |
byt_headers = {
|
761 |
"Authorization": f"Bearer {g_auth}"
|
762 |
}
|
763 |
+
upload_response = requests.post("https://api.bytescale.com/v2/accounts/12a1yeH/uploads/form_data", data=image_data, headers=byt_headers)
|
764 |
if upload_response.status_code == 200:
|
765 |
response_json = upload_response.json()
|
766 |
image_url = response_json.get('url')
|