Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
|
|
|
|
|
|
| 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()}"
|