Saumalya Sarkar commited on
Commit
4c03c5d
·
1 Parent(s): 0452ab8

:space: Base Space is Created

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -148,14 +148,13 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
148
 
149
  # --- Build Gradio Interface using Blocks ---
150
  with gr.Blocks() as demo:
151
- gr.Markdown("# Basic Agent Evaluation Runner")
152
  gr.Markdown(
153
  """
154
  **Instructions:**
155
 
156
- 1. Please clone this space, then modify the code to define your agent's logic, the tools, the necessary packages, etc ...
157
- 2. Log in to your Hugging Face account using the button below. This uses your HF username for submission.
158
- 3. Click 'Run Evaluation & Submit All Answers' to fetch questions, run your agent, submit answers, and see the score.
159
 
160
  ---
161
  **Disclaimers:**
@@ -164,8 +163,6 @@ with gr.Blocks() as demo:
164
  """
165
  )
166
 
167
- gr.LoginButton()
168
-
169
  run_button = gr.Button("Run Evaluation & Submit All Answers")
170
 
171
  status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
@@ -177,6 +174,8 @@ with gr.Blocks() as demo:
177
  outputs=[status_output, results_table]
178
  )
179
 
 
 
180
  if __name__ == "__main__":
181
  print("\n" + "-"*30 + " App Starting " + "-"*30)
182
  # Check for SPACE_HOST and SPACE_ID at startup for information
 
148
 
149
  # --- Build Gradio Interface using Blocks ---
150
  with gr.Blocks() as demo:
151
+ gr.Markdown("# Agent Evaluation Runner")
152
  gr.Markdown(
153
  """
154
  **Instructions:**
155
 
156
+ 1. Log in to your Hugging Face account using the button below. This uses your HF username for submission.
157
+ 2. Click 'Run Evaluation & Submit All Answers' to fetch questions, run your agent, submit answers, and see the score.
 
158
 
159
  ---
160
  **Disclaimers:**
 
163
  """
164
  )
165
 
 
 
166
  run_button = gr.Button("Run Evaluation & Submit All Answers")
167
 
168
  status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
 
174
  outputs=[status_output, results_table]
175
  )
176
 
177
+ gr.LoginButton()
178
+
179
  if __name__ == "__main__":
180
  print("\n" + "-"*30 + " App Starting " + "-"*30)
181
  # Check for SPACE_HOST and SPACE_ID at startup for information