Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,9 +35,9 @@ def download_gaia_to_csv_and_return_path():
|
|
| 35 |
return None, "❌ HF_TOKEN not found."
|
| 36 |
|
| 37 |
login(token)
|
| 38 |
-
dataset = load_dataset("gaia-benchmark/GAIA", "2023_level1", split="
|
| 39 |
|
| 40 |
-
output_path = "
|
| 41 |
keys = dataset[0].keys()
|
| 42 |
|
| 43 |
with open(output_path, "w", newline="", encoding="utf-8") as f:
|
|
@@ -193,7 +193,7 @@ with gr.Blocks() as demo:
|
|
| 193 |
|
| 194 |
test_eval_button = gr.Button("🔍 Evaluate on Local GAIA Test Set")
|
| 195 |
|
| 196 |
-
download_button = gr.Button("=== Download DB ====")
|
| 197 |
file_output = gr.File(label="Download CSV")
|
| 198 |
status_output = gr.Textbox(label="Status")
|
| 199 |
|
|
|
|
| 35 |
return None, "❌ HF_TOKEN not found."
|
| 36 |
|
| 37 |
login(token)
|
| 38 |
+
dataset = load_dataset("gaia-benchmark/GAIA", "2023_level1", split="validation", trust_remote_code=True)
|
| 39 |
|
| 40 |
+
output_path = "gaia_level1_validation.csv"
|
| 41 |
keys = dataset[0].keys()
|
| 42 |
|
| 43 |
with open(output_path, "w", newline="", encoding="utf-8") as f:
|
|
|
|
| 193 |
|
| 194 |
test_eval_button = gr.Button("🔍 Evaluate on Local GAIA Test Set")
|
| 195 |
|
| 196 |
+
download_button = gr.Button("=== Download Validation DB ====")
|
| 197 |
file_output = gr.File(label="Download CSV")
|
| 198 |
status_output = gr.Textbox(label="Status")
|
| 199 |
|