pedrogaprieto commited on
Commit
bae0e7f
·
verified ·
1 Parent(s): 81917a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -97,6 +97,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
97
  print(status_update)
98
 
99
  # 5. Submit
 
100
  print(f"Submitting {len(answers_payload)} answers to: {submit_url}")
101
  try:
102
  response = requests.post(submit_url, json=submission_data, timeout=60)
@@ -138,18 +139,16 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
138
  print(status_message)
139
  results_df = pd.DataFrame(results_log)
140
  return status_message, results_df
141
-
142
 
143
  # --- Build Gradio Interface using Blocks ---
144
  with gr.Blocks() as demo:
145
- gr.Markdown("# Basic Agent Evaluation Runner")
146
  gr.Markdown(
147
  """
148
  **Instructions:**
149
 
150
- 1. Please clone this space, then modify the code to define your agent's logic, the tools, the necessary packages, etc ...
151
- 2. Log in to your Hugging Face account using the button below. This uses your HF username for submission.
152
- 3. Click 'Run Evaluation & Submit All Answers' to fetch questions, run your agent, submit answers, and see the score.
153
 
154
  ---
155
  **Disclaimers:**
 
97
  print(status_update)
98
 
99
  # 5. Submit
100
+ """
101
  print(f"Submitting {len(answers_payload)} answers to: {submit_url}")
102
  try:
103
  response = requests.post(submit_url, json=submission_data, timeout=60)
 
139
  print(status_message)
140
  results_df = pd.DataFrame(results_log)
141
  return status_message, results_df
142
+ """
143
 
144
  # --- Build Gradio Interface using Blocks ---
145
  with gr.Blocks() as demo:
146
+ gr.Markdown("# PGP Very Basic Agent Evaluation Runner")
147
  gr.Markdown(
148
  """
149
  **Instructions:**
150
 
151
+ Click 'Run Evaluation & Submit All Answers' to fetch questions, run the agent, submit answers, and see the score.
 
 
152
 
153
  ---
154
  **Disclaimers:**