Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -253,7 +253,7 @@ For factual questions:
|
|
| 253 |
return answer
|
| 254 |
|
| 255 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|
| 256 |
-
|
| 257 |
"""
|
| 258 |
Fetches all questions, runs the EnhancedAgent on them, submits all answers,
|
| 259 |
and displays the results.
|
|
@@ -296,6 +296,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 296 |
except Exception as e:
|
| 297 |
print(f"Error fetching questions: {e}")
|
| 298 |
return f"Error fetching questions: {e}", None
|
|
|
|
| 299 |
|
| 300 |
# 3. Process Questions
|
| 301 |
results_log = []
|
|
|
|
| 253 |
return answer
|
| 254 |
|
| 255 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|
| 256 |
+
agent = Agent()
|
| 257 |
"""
|
| 258 |
Fetches all questions, runs the EnhancedAgent on them, submits all answers,
|
| 259 |
and displays the results.
|
|
|
|
| 296 |
except Exception as e:
|
| 297 |
print(f"Error fetching questions: {e}")
|
| 298 |
return f"Error fetching questions: {e}", None
|
| 299 |
+
submitted_answer = agent(question_text)
|
| 300 |
|
| 301 |
# 3. Process Questions
|
| 302 |
results_log = []
|