Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -279,7 +279,7 @@ with gr.Blocks(css="""
|
|
| 279 |
|
| 280 |
# Get preview data if becoming visible
|
| 281 |
if is_visible and dataset == "MMLU-Pro":
|
| 282 |
-
preview_data = mmlupro_dataset_preview()
|
| 283 |
formatted_preview = format_preview_for_display(preview_data)
|
| 284 |
return is_visible, gr.update(visible=True), formatted_preview, gr.update(value=button_text)
|
| 285 |
elif is_visible:
|
|
|
|
| 279 |
|
| 280 |
# Get preview data if becoming visible
|
| 281 |
if is_visible and dataset == "MMLU-Pro":
|
| 282 |
+
preview_data = mmlupro_dataset_preview(regenerate_preview=False) # Change regenerate_preview=True if you want to regenerate the preview.
|
| 283 |
formatted_preview = format_preview_for_display(preview_data)
|
| 284 |
return is_visible, gr.update(visible=True), formatted_preview, gr.update(value=button_text)
|
| 285 |
elif is_visible:
|