Spaces:
Runtime error
Runtime error
Omachoko
commited on
Commit
·
6545c63
1
Parent(s):
db306d2
Fix runtime error in Gradio UI by removing _js parameter
Browse files
app.py
CHANGED
@@ -903,8 +903,7 @@ with gr.Blocks(title="GAIA Agent - Multi-Tab with Progress Tracking") as app:
|
|
903 |
fetch_btn.click(
|
904 |
fn=lambda token: ("Fetching...", agent.fetch_questions(token)),
|
905 |
inputs=token_input,
|
906 |
-
outputs=[fetch_progress, questions_output]
|
907 |
-
_js="(token) => {return [token];}"
|
908 |
)
|
909 |
# Tab 2: Manual Question Input with Detailed Feedback
|
910 |
with gr.TabItem("Manual Question Input"):
|
@@ -934,8 +933,7 @@ with gr.Blocks(title="GAIA Agent - Multi-Tab with Progress Tracking") as app:
|
|
934 |
submit_btn.click(
|
935 |
fn=lambda token: agent.run_and_submit_all(token),
|
936 |
inputs=submit_token,
|
937 |
-
outputs=[submit_progress, score_output, progress_bar, status_text]
|
938 |
-
_js="(token) => {return [token];}"
|
939 |
)
|
940 |
# Tab 4: Agent Details and Configuration
|
941 |
with gr.TabItem("Agent Details"):
|
@@ -958,8 +956,7 @@ with gr.Blocks(title="GAIA Agent - Multi-Tab with Progress Tracking") as app:
|
|
958 |
batch_btn.click(
|
959 |
fn=lambda token: agent.process_batch(token),
|
960 |
inputs=batch_token,
|
961 |
-
outputs=[batch_progress, batch_results]
|
962 |
-
_js="(token) => {return [token];}"
|
963 |
)
|
964 |
|
965 |
# Launch app with public link for easy access
|
|
|
903 |
fetch_btn.click(
|
904 |
fn=lambda token: ("Fetching...", agent.fetch_questions(token)),
|
905 |
inputs=token_input,
|
906 |
+
outputs=[fetch_progress, questions_output]
|
|
|
907 |
)
|
908 |
# Tab 2: Manual Question Input with Detailed Feedback
|
909 |
with gr.TabItem("Manual Question Input"):
|
|
|
933 |
submit_btn.click(
|
934 |
fn=lambda token: agent.run_and_submit_all(token),
|
935 |
inputs=submit_token,
|
936 |
+
outputs=[submit_progress, score_output, progress_bar, status_text]
|
|
|
937 |
)
|
938 |
# Tab 4: Agent Details and Configuration
|
939 |
with gr.TabItem("Agent Details"):
|
|
|
956 |
batch_btn.click(
|
957 |
fn=lambda token: agent.process_batch(token),
|
958 |
inputs=batch_token,
|
959 |
+
outputs=[batch_progress, batch_results]
|
|
|
960 |
)
|
961 |
|
962 |
# Launch app with public link for easy access
|