app.py
CHANGED
|
@@ -14,8 +14,9 @@ with gr.Blocks() as demo:
|
|
| 14 |
3. Click 'Run Evaluation & Submit All Answers' to fetch questions, run your agent, submit answers, and see the score.
|
| 15 |
Note: Once clicking on the "submit button, it can take quite some time (this is the time for the agent to go through all the questions).
|
| 16 |
|
|
|
|
| 17 |
**Implementation:**
|
| 18 |
-
|
| 19 |
"""
|
| 20 |
)
|
| 21 |
gr.LoginButton()
|
|
|
|
| 14 |
3. Click 'Run Evaluation & Submit All Answers' to fetch questions, run your agent, submit answers, and see the score.
|
| 15 |
Note: Once clicking on the "submit button, it can take quite some time (this is the time for the agent to go through all the questions).
|
| 16 |
|
| 17 |
+
---
|
| 18 |
**Implementation:**
|
| 19 |
+
wip
|
| 20 |
"""
|
| 21 |
)
|
| 22 |
gr.LoginButton()
|
utils.py
CHANGED
|
@@ -34,7 +34,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None, agent: BasicAgent) -> Tu
|
|
| 34 |
print(f"Error instantiating agent: {e}")
|
| 35 |
return f"Error initializing agent: {e}", None
|
| 36 |
# In the case of an app running as a HF Space, this link points toward your codebase
|
| 37 |
-
agent_code = f"https://huggingface.co/spaces/{os.getenv(
|
| 38 |
print(agent_code)
|
| 39 |
|
| 40 |
# 2. Fetch Questions
|
|
|
|
| 34 |
print(f"Error instantiating agent: {e}")
|
| 35 |
return f"Error initializing agent: {e}", None
|
| 36 |
# In the case of an app running as a HF Space, this link points toward your codebase
|
| 37 |
+
agent_code = f"https://huggingface.co/spaces/{os.getenv('SPACE_ID')}/tree/main"
|
| 38 |
print(agent_code)
|
| 39 |
|
| 40 |
# 2. Fetch Questions
|