Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -419,7 +419,7 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
419 |
}).json()
|
420 |
print("RESPONSE TRY",response)
|
421 |
reply = response["choices"][0]["message"]["content"]
|
422 |
-
messages.append({"role": "assistant", "content": reply})
|
423 |
output.append({"Mode": "Image", "type": max_label, "prediction_value": max_rounded_prediction, "content": reply})
|
424 |
except:
|
425 |
print("DOESN'T WORK")
|
@@ -456,7 +456,7 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
456 |
}).json()
|
457 |
|
458 |
reply = response["choices"][0]["message"]["content"]
|
459 |
-
messages.append({"role": "assistant", "content": reply})
|
460 |
|
461 |
output.append({"Mode": "Chat", "content": reply})
|
462 |
|
|
|
419 |
}).json()
|
420 |
print("RESPONSE TRY",response)
|
421 |
reply = response["choices"][0]["message"]["content"]
|
422 |
+
# messages.append({"role": "assistant", "content": reply})
|
423 |
output.append({"Mode": "Image", "type": max_label, "prediction_value": max_rounded_prediction, "content": reply})
|
424 |
except:
|
425 |
print("DOESN'T WORK")
|
|
|
456 |
}).json()
|
457 |
|
458 |
reply = response["choices"][0]["message"]["content"]
|
459 |
+
# messages.append({"role": "assistant", "content": reply})
|
460 |
|
461 |
output.append({"Mode": "Chat", "content": reply})
|
462 |
|