Molbap HF Staff commited on
Commit
624b0a0
·
verified ·
1 Parent(s): f62613d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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.Markdown.update(visible=False), # header
140
- gr.Tabs.update(visible=False), # tabs
141
- gr.HTML.update(value=html, visible=True), # embed_html
142
  )
143
 
144
  return (
145
- gr.Markdown.update(visible=True),
146
- gr.Tabs.update(visible=True, selected=tab_sel),
147
- gr.HTML.update(visible=False),
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])