Update app.py
Browse files
app.py
CHANGED
|
@@ -152,4 +152,14 @@ with gr.Blocks() as demo:
|
|
| 152 |
|
| 153 |
gr.LoginButton()
|
| 154 |
run_button = gr.Button("Run Evaluation & Submit All Answers")
|
| 155 |
-
status_output = gr.Textbox(label=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
|
| 153 |
gr.LoginButton()
|
| 154 |
run_button = gr.Button("Run Evaluation & Submit All Answers")
|
| 155 |
+
status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
|
| 156 |
+
results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
|
| 157 |
+
|
| 158 |
+
run_button.click(
|
| 159 |
+
fn=run_and_submit_all,
|
| 160 |
+
outputs=[status_output, results_table]
|
| 161 |
+
)
|
| 162 |
+
|
| 163 |
+
if __name__ == "__main__":
|
| 164 |
+
print("Launching Gradio app...")
|
| 165 |
+
demo.launch(debug=True, share=False)
|