File size: 577 Bytes
a9bd2f9
4f95966
10e9b7d
a9bd2f9
 
 
 
 
 
 
 
e80aab9
a9bd2f9
 
4021bf3
a9bd2f9
3c4371f
c9beace
 
4f95966
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from datasets import load_dataset
import gradio as gr

# all levels, validation split (public)
ds_val = load_dataset(
    "gaia-benchmark/GAIA",
    "2023_all",
    split="validation",
    token=True,                 # use_auth_token=True on older installs also works
    trust_remote_code=True,     # needed because GAIA uses a loading script
)

ds_val.set_format(type="pandas")
df_val = ds_val[:]

temp_id = df_val.at[0, 'task_id']

with gr.Blocks(title="Display task_id") as demo:
    gr.Markdown( "Task_id: {}".format(temp_id))

if __name__ == "__main__":
    demo.launch()