FD900 commited on
Commit
ccb690d
·
verified ·
1 Parent(s): 5932c3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -42,7 +42,9 @@ def run_agent():
42
  status_lines.append(f"✅ Q{idx}: Answered")
43
 
44
  status_lines.append(f"\n🎯 Done. {len(answers)} questions answered.")
45
- return "\n".join(status_lines)
 
 
46
 
47
  except Exception as e:
48
  return f"❌ Error:\n{traceback.format_exc()}"
 
42
  status_lines.append(f"✅ Q{idx}: Answered")
43
 
44
  status_lines.append(f"\n🎯 Done. {len(answers)} questions answered.")
45
+ return "🎯 Done.\n\n" + "\n".join(
46
+ [f"✅ Q{idx+1} (ID {a['task_id']}): {a['submitted_answer']}" for idx, a in enumerate(answers)]
47
+ )
48
 
49
  except Exception as e:
50
  return f"❌ Error:\n{traceback.format_exc()}"