Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -136,15 +136,15 @@ with gr.Blocks(css=CUSTOM_CSS) as demo:
|
|
| 136 |
html = run_loc("jaccard", False, height_vh=60)
|
| 137 |
|
| 138 |
return (
|
| 139 |
-
gr.
|
| 140 |
-
gr.
|
| 141 |
-
gr.
|
| 142 |
)
|
| 143 |
|
| 144 |
return (
|
| 145 |
-
gr.
|
| 146 |
-
gr.
|
| 147 |
-
gr.
|
| 148 |
)
|
| 149 |
|
| 150 |
demo.load(_on_load, outputs=[header, tabs, embed_html])
|
|
|
|
| 136 |
html = run_loc("jaccard", False, height_vh=60)
|
| 137 |
|
| 138 |
return (
|
| 139 |
+
gr.update(visible=False), # header
|
| 140 |
+
gr.update(visible=False), # tabs
|
| 141 |
+
gr.update(value=html, visible=True), # embed_html
|
| 142 |
)
|
| 143 |
|
| 144 |
return (
|
| 145 |
+
gr.update(visible=True),
|
| 146 |
+
gr.update(visible=True, selected=tab_sel),
|
| 147 |
+
gr.update(visible=False),
|
| 148 |
)
|
| 149 |
|
| 150 |
demo.load(_on_load, outputs=[header, tabs, embed_html])
|