Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1095,7 +1095,11 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
| 1095 |
]
|
| 1096 |
)
|
| 1097 |
print("YES_FUNCTION_CALL RESPONSE TRY (NO IMAGE)")
|
| 1098 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1099 |
else:
|
| 1100 |
reply = comp['content']
|
| 1101 |
print("RESPONSE TRY (NO IMAGE, FUNCTION_CALL)")
|
|
|
|
| 1095 |
]
|
| 1096 |
)
|
| 1097 |
print("YES_FUNCTION_CALL RESPONSE TRY (NO IMAGE)")
|
| 1098 |
+
if second_response:
|
| 1099 |
+
reply = second_response.choices[0].message['content']
|
| 1100 |
+
return reply
|
| 1101 |
+
else:
|
| 1102 |
+
return "Error"
|
| 1103 |
else:
|
| 1104 |
reply = comp['content']
|
| 1105 |
print("RESPONSE TRY (NO IMAGE, FUNCTION_CALL)")
|