File size: 471 Bytes
0bd02f0
b42a4c1
0bd02f0
f71f6af
b42a4c1
f71f6af
0bd02f0
f71f6af
 
 
 
 
 
 
 
62ac596
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import gradio as gr
from submit_gaia import run_submission

def on_submit_click():
    result = run_submission()
    return f"Leaderboard submission result:\n{result}"

with gr.Blocks() as demo:
    gr.Markdown("# GIAI LangGraph Agent Demo")

    submit_button = gr.Button("Submit All GAIA Level 1 Questions")
    output = gr.Textbox(label="Submission Result", lines=10)

    submit_button.click(fn=on_submit_click, inputs=[], outputs=[output])

demo.launch(share=True)