Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -346,7 +346,7 @@ messages = [
|
|
346 |
{"role": "system", "content": system}
|
347 |
]
|
348 |
|
349 |
-
def classify(platform, UserInput,
|
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(
|
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)
|