pmeyhoefer commited on
Commit
19d815b
·
verified ·
1 Parent(s): 4c90f1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -440,7 +440,7 @@ Let's begin the thinking process for Task {task_id}.
440
  return final_status, results_df
441
 
442
 
443
- # --- Gradio Interface (weitgehend unverändert) ---
444
  with gr.Blocks() as demo:
445
  gr.Markdown("# Smol CodeAgent Evaluation Runner (Hugging Face)") # Titel angepasst
446
  gr.Markdown(f"""
@@ -455,11 +455,14 @@ with gr.Blocks() as demo:
455
  """)
456
  with gr.Row(): login_button = gr.LoginButton()
457
  run_button = gr.Button("Run Evaluation & Submit All Answers")
 
458
  status_output = gr.Textbox(label="Run Status / Submission Result", lines=10, interactive=False)
459
- results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True, height=400)
 
460
 
461
  def handle_run(request: gr.Request):
462
  profile = getattr(request, 'profile', None)
 
463
  return run_and_submit_all(profile, progress=gr.Progress(track_tqdm=True))
464
 
465
  run_button.click(fn=handle_run, inputs=[], outputs=[status_output, results_table], api_name="run_evaluation_smol_codeagent")
 
440
  return final_status, results_df
441
 
442
 
443
+ # --- Gradio Interface (height Parameter entfernt) ---
444
  with gr.Blocks() as demo:
445
  gr.Markdown("# Smol CodeAgent Evaluation Runner (Hugging Face)") # Titel angepasst
446
  gr.Markdown(f"""
 
455
  """)
456
  with gr.Row(): login_button = gr.LoginButton()
457
  run_button = gr.Button("Run Evaluation & Submit All Answers")
458
+
459
  status_output = gr.Textbox(label="Run Status / Submission Result", lines=10, interactive=False)
460
+ # KORREKTUR: 'height' Parameter entfernt
461
+ results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
462
 
463
  def handle_run(request: gr.Request):
464
  profile = getattr(request, 'profile', None)
465
+ # Stelle sicher, dass run_and_submit_all aufgerufen wird und nicht nur definiert
466
  return run_and_submit_all(profile, progress=gr.Progress(track_tqdm=True))
467
 
468
  run_button.click(fn=handle_run, inputs=[], outputs=[status_output, results_table], api_name="run_evaluation_smol_codeagent")