imseldrith commited on
Commit
a29a451
·
verified ·
1 Parent(s): 9cc7fe7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -55,7 +55,7 @@ def handle_messages():
55
  response_text = result.get('response', '')
56
 
57
  try:
58
- parsed_response = eval(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:
 
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: