Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,13 +57,13 @@ def responsenew(data):
|
|
| 57 |
items = json.loads(newdata)
|
| 58 |
query = items['text']
|
| 59 |
query = query.lower()
|
| 60 |
-
try:
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
except json.JSONDecodeError as e:
|
| 66 |
-
|
| 67 |
response = model.generate_content(query)
|
| 68 |
print(f"\n{to_markdown(response.text)}")
|
| 69 |
if text is not None:
|
|
|
|
| 57 |
items = json.loads(newdata)
|
| 58 |
query = items['text']
|
| 59 |
query = query.lower()
|
| 60 |
+
# try:
|
| 61 |
+
# items = json.loads(newdata)
|
| 62 |
+
# query = items['text']
|
| 63 |
+
# query = query.lower()
|
| 64 |
+
# print(query)
|
| 65 |
+
# except json.JSONDecodeError as e:
|
| 66 |
+
# print("Invalid JSON:", e)
|
| 67 |
response = model.generate_content(query)
|
| 68 |
print(f"\n{to_markdown(response.text)}")
|
| 69 |
if text is not None:
|