Update main.py
Browse files
main.py
CHANGED
@@ -84,7 +84,7 @@ def handle_message(event):
|
|
84 |
# if not response.parts or not response.parts[0].text:
|
85 |
# out = response.parts[0].text
|
86 |
|
87 |
-
out = client.predict(messages, api_name="/predict")
|
88 |
if not out:
|
89 |
out = "Gemini: [No response or the response does not contain text]"
|
90 |
except:
|
|
|
84 |
# if not response.parts or not response.parts[0].text:
|
85 |
# out = response.parts[0].text
|
86 |
|
87 |
+
out = client.predict(messages, api_name="/predict").parts[0].text
|
88 |
if not out:
|
89 |
out = "Gemini: [No response or the response does not contain text]"
|
90 |
except:
|