Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -993,13 +993,8 @@ def classify(platform, UserInput, Images, Textbox2, Textbox3):
|
|
993 |
}
|
994 |
)
|
995 |
|
996 |
-
|
997 |
-
|
998 |
-
reply = completion.choices[0].message['content']
|
999 |
-
print("RESPONSE TRY (NO IMAGE)", completion, reply)
|
1000 |
-
elif completion.choices[0].finish_reason == "function_call":
|
1001 |
-
reply = completion.choices[0].message['content']
|
1002 |
-
print("RESPONSE TRY (NO IMAGE) FUNCTION_CALL", completion, reply)
|
1003 |
except Exception as e:
|
1004 |
print("Error",e)
|
1005 |
reply = "Maximum messages: 15. Please clear your history and Try Again! (No Image)"
|
|
|
993 |
}
|
994 |
)
|
995 |
|
996 |
+
reply = completion.choices[0].message['content']
|
997 |
+
print("RESPONSE TRY (NO IMAGE)", completion, reply)
|
|
|
|
|
|
|
|
|
|
|
998 |
except Exception as e:
|
999 |
print("Error",e)
|
1000 |
reply = "Maximum messages: 15. Please clear your history and Try Again! (No Image)"
|