tommy24 commited on
Commit
81dc57e
·
1 Parent(s): 49acf40

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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/vis_upload/", 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')
 
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')