Spaces:
Sleeping
Sleeping
imseldrith
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def handle_messages():
|
|
55 |
response_text = result.get('response', '')
|
56 |
|
57 |
try:
|
58 |
-
parsed_response =
|
59 |
if not isinstance(parsed_response, dict):
|
60 |
raise ValueError("Response is not a valid dictionary")
|
61 |
except:
|
|
|
55 |
response_text = result.get('response', '')
|
56 |
|
57 |
try:
|
58 |
+
parsed_response = response_text # Caution: using eval() is dangerous, ensure the content is trusted
|
59 |
if not isinstance(parsed_response, dict):
|
60 |
raise ValueError("Response is not a valid dictionary")
|
61 |
except:
|