Spaces:
Sleeping
Sleeping
add GAIA simu button
Browse files
app.py
CHANGED
|
@@ -173,6 +173,7 @@ with gr.Blocks() as demo:
|
|
| 173 |
|
| 174 |
run_button = gr.Button("Run Evaluation & Submit All Answers")
|
| 175 |
run_test_button = gr.Button("Run test")
|
|
|
|
| 176 |
|
| 177 |
status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
|
| 178 |
# Removed max_rows=10 from DataFrame constructor
|
|
@@ -188,6 +189,11 @@ with gr.Blocks() as demo:
|
|
| 188 |
outputs=[status_output, results_table]
|
| 189 |
)
|
| 190 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
if __name__ == "__main__":
|
| 192 |
print("\n" + "-"*30 + " App Starting " + "-"*30)
|
| 193 |
# Check for SPACE_HOST and SPACE_ID at startup for information
|
|
|
|
| 173 |
|
| 174 |
run_button = gr.Button("Run Evaluation & Submit All Answers")
|
| 175 |
run_test_button = gr.Button("Run test")
|
| 176 |
+
run_simu_button = gr.Button("Simulate questions")
|
| 177 |
|
| 178 |
status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
|
| 179 |
# Removed max_rows=10 from DataFrame constructor
|
|
|
|
| 189 |
outputs=[status_output, results_table]
|
| 190 |
)
|
| 191 |
|
| 192 |
+
run_simu_button.click(
|
| 193 |
+
fn=run_GAIA_questions_simu,
|
| 194 |
+
outputs=[]
|
| 195 |
+
)
|
| 196 |
+
|
| 197 |
if __name__ == "__main__":
|
| 198 |
print("\n" + "-"*30 + " App Starting " + "-"*30)
|
| 199 |
# Check for SPACE_HOST and SPACE_ID at startup for information
|