ankban commited on
Commit
b67dec4
·
verified ·
1 Parent(s): 7a0a3a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -19,7 +19,9 @@ with gr.Blocks(css="light_mode_chatter_owl.css") as app:
19
  # Dynamic sections
20
  spoken_panel = spoken_dashboard()
21
  written_panel = written_dashboard()
22
- file_panel = file_dashboard()
 
 
23
 
24
  spoken_panel.visible = True
25
  written_panel.visible = False
@@ -37,5 +39,6 @@ with gr.Blocks(css="light_mode_chatter_owl.css") as app:
37
  btn_written.click(fn=lambda: switch_mode("written"), inputs=[], outputs=[spoken_panel, written_panel, file_panel, study_type])
38
  btn_file.click(fn=lambda: switch_mode("file"), inputs=[], outputs=[spoken_panel, written_panel, file_panel, study_type])
39
 
 
40
  if __name__ == "__main__":
41
  app.launch(server_name="0.0.0.0", server_port=7860)
 
19
  # Dynamic sections
20
  spoken_panel = spoken_dashboard()
21
  written_panel = written_dashboard()
22
+ file_panel = gr.Column(visible=False)
23
+ with file_panel:
24
+ file_dashboard()
25
 
26
  spoken_panel.visible = True
27
  written_panel.visible = False
 
39
  btn_written.click(fn=lambda: switch_mode("written"), inputs=[], outputs=[spoken_panel, written_panel, file_panel, study_type])
40
  btn_file.click(fn=lambda: switch_mode("file"), inputs=[], outputs=[spoken_panel, written_panel, file_panel, study_type])
41
 
42
+
43
  if __name__ == "__main__":
44
  app.launch(server_name="0.0.0.0", server_port=7860)