Spaces:
Runtime error
Runtime error
Add possibility of run
Browse files
app.py
CHANGED
@@ -250,10 +250,15 @@ with gr.Blocks() as demo:
|
|
250 |
"""
|
251 |
)
|
252 |
gr.LoginButton()
|
253 |
-
|
|
|
254 |
status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
|
255 |
results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
|
256 |
-
run_button.click(
|
|
|
|
|
|
|
|
|
257 |
|
258 |
if __name__ == "__main__":
|
259 |
print("Launching Gradio Interface...")
|
|
|
250 |
"""
|
251 |
)
|
252 |
gr.LoginButton()
|
253 |
+
test_checkbox = gr.Checkbox(label="Enable Test Mode (Skip Submission)", value=False)
|
254 |
+
run_button = gr.Button("Run Evaluation")
|
255 |
status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
|
256 |
results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
|
257 |
+
run_button.click(
|
258 |
+
fn=run_and_submit_all,
|
259 |
+
inputs=[gr.OAuthProfile(), test_checkbox],
|
260 |
+
outputs=[status_output, results_table]
|
261 |
+
)
|
262 |
|
263 |
if __name__ == "__main__":
|
264 |
print("Launching Gradio Interface...")
|