Spaces:
Sleeping
Sleeping
Romain Graux commited on
Commit ·
0c0ff09
1
Parent(s): 9383568
Reverse files export to expose all_results first
Browse files
app.py
CHANGED
|
@@ -10,8 +10,6 @@
|
|
| 10 |
# TODO : add the description of the settings
|
| 11 |
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
import gradio as gr
|
| 16 |
import json
|
| 17 |
import numpy as np
|
|
@@ -188,7 +186,7 @@ def batch_export_files(gallery, block_state):
|
|
| 188 |
files.append(metadata_path)
|
| 189 |
|
| 190 |
files.append(zipObj.filename)
|
| 191 |
-
return gr.update(value=files, visible=True)
|
| 192 |
|
| 193 |
|
| 194 |
CSS = """
|
|
@@ -285,9 +283,7 @@ with gr.Blocks(css=CSS) as block:
|
|
| 285 |
button = gr.Button(value="Run")
|
| 286 |
with gr.Column():
|
| 287 |
with gr.Tab("Masked prediction") as masked_tab:
|
| 288 |
-
masked_prediction_gallery = gr.Gallery(
|
| 289 |
-
label="Masked predictions"
|
| 290 |
-
)
|
| 291 |
with gr.Tab("Nearest neighbors") as nn_tab:
|
| 292 |
bokeh_plot = gr.Plot(show_label=False)
|
| 293 |
error_html = gr.HTML(visible=False)
|
|
@@ -366,7 +362,6 @@ The software is provided “as is”, without warranty of any kind, express or i
|
|
| 366 |
"""
|
| 367 |
)
|
| 368 |
|
| 369 |
-
|
| 370 |
block.launch(
|
| 371 |
share=False,
|
| 372 |
show_error=True,
|
|
|
|
| 10 |
# TODO : add the description of the settings
|
| 11 |
|
| 12 |
|
|
|
|
|
|
|
| 13 |
import gradio as gr
|
| 14 |
import json
|
| 15 |
import numpy as np
|
|
|
|
| 186 |
files.append(metadata_path)
|
| 187 |
|
| 188 |
files.append(zipObj.filename)
|
| 189 |
+
return gr.update(value=files[::-1], visible=True)
|
| 190 |
|
| 191 |
|
| 192 |
CSS = """
|
|
|
|
| 283 |
button = gr.Button(value="Run")
|
| 284 |
with gr.Column():
|
| 285 |
with gr.Tab("Masked prediction") as masked_tab:
|
| 286 |
+
masked_prediction_gallery = gr.Gallery(label="Masked predictions")
|
|
|
|
|
|
|
| 287 |
with gr.Tab("Nearest neighbors") as nn_tab:
|
| 288 |
bokeh_plot = gr.Plot(show_label=False)
|
| 289 |
error_html = gr.HTML(visible=False)
|
|
|
|
| 362 |
"""
|
| 363 |
)
|
| 364 |
|
|
|
|
| 365 |
block.launch(
|
| 366 |
share=False,
|
| 367 |
show_error=True,
|