philincloud commited on
Commit
daafe8e
·
verified ·
1 Parent(s): 55b6c13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -30,6 +30,7 @@ class BasicAgent:
30
  meta = row.get("metadata", "")
31
  if "task_id" in meta:
32
  # Extract task_id from the metadata string
 
33
  import ast
34
  try:
35
  meta_dict = ast.literal_eval(meta)
 
30
  meta = row.get("metadata", "")
31
  if "task_id" in meta:
32
  # Extract task_id from the metadata string
33
+ # FIX: Moved import ast and try-except block here
34
  import ast
35
  try:
36
  meta_dict = ast.literal_eval(meta)