tommy24 commited on
Commit
42de1db
·
1 Parent(s): c38acde

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -346,7 +346,7 @@ messages = [
346
  {"role": "system", "content": system}
347
  ]
348
 
349
- def classify(platform, UserInput, Image, Textbox2, Textbox3):
350
  if Textbox3 == code:
351
  imageData = None
352
  if Image is not None:
@@ -355,7 +355,7 @@ def classify(platform, UserInput, Image, Textbox2, Textbox3):
355
  "Authorization": f"Bearer {auth2}"
356
  }
357
  if platform == "wh":
358
- get_image = requests.get(Image, headers=headers)
359
  if get_image.status_code == 200:
360
  # print(get_image.content)
361
  # imageData = cv.imdecode(np.asarray(bytearray(get_image.content), dtype="uint8"), cv.IMREAD_COLOR)
 
346
  {"role": "system", "content": system}
347
  ]
348
 
349
+ def classify(platform, UserInput, Images, Textbox2, Textbox3):
350
  if Textbox3 == code:
351
  imageData = None
352
  if Image is not None:
 
355
  "Authorization": f"Bearer {auth2}"
356
  }
357
  if platform == "wh":
358
+ get_image = requests.get(Images, headers=headers)
359
  if get_image.status_code == 200:
360
  # print(get_image.content)
361
  # imageData = cv.imdecode(np.asarray(bytearray(get_image.content), dtype="uint8"), cv.IMREAD_COLOR)