Spaces:
Runtime error
Runtime error
move 'download' button
Browse files
app.py
CHANGED
|
@@ -641,10 +641,6 @@ with gr.Blocks(css=css) as block:
|
|
| 641 |
elem_classes=["filter-checkbox-group"],
|
| 642 |
scale=2,
|
| 643 |
)
|
| 644 |
-
export_button = gr.DownloadButton(
|
| 645 |
-
label="Download as JSON",
|
| 646 |
-
value=EXPORTED_DATA_FILEPATH,
|
| 647 |
-
)
|
| 648 |
|
| 649 |
with gr.Tabs() as outer_tabs:
|
| 650 |
# Store the tabs for updating them on load based on URL parameters
|
|
@@ -713,6 +709,10 @@ with gr.Blocks(css=css) as block:
|
|
| 713 |
}
|
| 714 |
```
|
| 715 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 716 |
|
| 717 |
def set_tabs_on_load(request: gr.Request):
|
| 718 |
"""Set the selected tab based on the URL parameters on load."""
|
|
|
|
| 641 |
elem_classes=["filter-checkbox-group"],
|
| 642 |
scale=2,
|
| 643 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 644 |
|
| 645 |
with gr.Tabs() as outer_tabs:
|
| 646 |
# Store the tabs for updating them on load based on URL parameters
|
|
|
|
| 709 |
}
|
| 710 |
```
|
| 711 |
""")
|
| 712 |
+
export_button = gr.DownloadButton(
|
| 713 |
+
label="Download as JSON",
|
| 714 |
+
value=EXPORTED_DATA_FILEPATH,
|
| 715 |
+
)
|
| 716 |
|
| 717 |
def set_tabs_on_load(request: gr.Request):
|
| 718 |
"""Set the selected tab based on the URL parameters on load."""
|