Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
|
| 2 |
import gradio as gr
|
| 3 |
from spoken_module import spoken_dashboard
|
|
|
|
| 4 |
|
| 5 |
with gr.Blocks(css="light_mode_chatter_owl.css") as app:
|
| 6 |
study_type = gr.State("spoken")
|
|
@@ -17,11 +17,11 @@ with gr.Blocks(css="light_mode_chatter_owl.css") as app:
|
|
| 17 |
|
| 18 |
# Dynamic sections
|
| 19 |
spoken_panel = spoken_dashboard()
|
| 20 |
-
written_panel =
|
| 21 |
file_panel = gr.Column(visible=False)
|
| 22 |
|
| 23 |
-
|
| 24 |
-
|
| 25 |
|
| 26 |
with file_panel:
|
| 27 |
gr.Markdown("## 📄 File-Based Learning (Coming Soon)")
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from spoken_module import spoken_dashboard
|
| 3 |
+
from written_module import written_dashboard
|
| 4 |
|
| 5 |
with gr.Blocks(css="light_mode_chatter_owl.css") as app:
|
| 6 |
study_type = gr.State("spoken")
|
|
|
|
| 17 |
|
| 18 |
# Dynamic sections
|
| 19 |
spoken_panel = spoken_dashboard()
|
| 20 |
+
written_panel = written_dashboard()
|
| 21 |
file_panel = gr.Column(visible=False)
|
| 22 |
|
| 23 |
+
spoken_panel.visible = True
|
| 24 |
+
written_panel.visible = False
|
| 25 |
|
| 26 |
with file_panel:
|
| 27 |
gr.Markdown("## 📄 File-Based Learning (Coming Soon)")
|