Spaces:
Runtime error
Runtime error
Omachoko
commited on
Commit
·
670d3b3
1
Parent(s):
443c7ca
Fix runtime error by adding wrapper for run_and_submit_all function
Browse files
app.py
CHANGED
@@ -784,12 +784,16 @@ with gr.Blocks() as demo:
|
|
784 |
status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
|
785 |
results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
|
786 |
|
787 |
-
run_button.click(fn=
|
788 |
|
789 |
if __name__ == "__main__":
|
790 |
print("Launching Gradio Interface for Smart Agent Evaluation...")
|
791 |
demo.launch(debug=True, share=False)
|
792 |
|
|
|
|
|
|
|
|
|
793 |
# Update run_and_submit_all to use the enhanced ModularGAIAAgent
|
794 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|
795 |
space_id = os.getenv("SPACE_ID")
|
|
|
784 |
status_output = gr.Textbox(label="Run Status / Submission Result", lines=5, interactive=False)
|
785 |
results_table = gr.DataFrame(label="Questions and Agent Answers", wrap=True)
|
786 |
|
787 |
+
run_button.click(fn=run_and_submit_all_wrapper, outputs=[status_output, results_table])
|
788 |
|
789 |
if __name__ == "__main__":
|
790 |
print("Launching Gradio Interface for Smart Agent Evaluation...")
|
791 |
demo.launch(debug=True, share=False)
|
792 |
|
793 |
+
# Define a wrapper to ensure compatibility
|
794 |
+
def run_and_submit_all_wrapper(profile: gr.OAuthProfile | None):
|
795 |
+
return run_and_submit_all(profile)
|
796 |
+
|
797 |
# Update run_and_submit_all to use the enhanced ModularGAIAAgent
|
798 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|
799 |
space_id = os.getenv("SPACE_ID")
|