Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -65,7 +65,7 @@ def responsenew(data):
|
|
| 65 |
# except json.JSONDecodeError as e:
|
| 66 |
# print("Invalid JSON:", e)
|
| 67 |
response = model.generate_content(query)
|
| 68 |
-
print(f"\n{
|
| 69 |
if text is not None:
|
| 70 |
if "remind me" in text:
|
| 71 |
values = getValues(text)
|
|
@@ -238,7 +238,7 @@ def responsenew(data):
|
|
| 238 |
}
|
| 239 |
else:
|
| 240 |
respo = {
|
| 241 |
-
"message":
|
| 242 |
"action": "nothing",
|
| 243 |
"function": "nothing",
|
| 244 |
}
|
|
|
|
| 65 |
# except json.JSONDecodeError as e:
|
| 66 |
# print("Invalid JSON:", e)
|
| 67 |
response = model.generate_content(query)
|
| 68 |
+
print(f"\n{response.text}")
|
| 69 |
if text is not None:
|
| 70 |
if "remind me" in text:
|
| 71 |
values = getValues(text)
|
|
|
|
| 238 |
}
|
| 239 |
else:
|
| 240 |
respo = {
|
| 241 |
+
"message": response.text,
|
| 242 |
"action": "nothing",
|
| 243 |
"function": "nothing",
|
| 244 |
}
|