Update app.py
Browse files
app.py
CHANGED
|
@@ -137,13 +137,6 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 137 |
"Choose a mode using the buttons below:"
|
| 138 |
)
|
| 139 |
|
| 140 |
-
# CHAT INTERFACE
|
| 141 |
-
chatbot = gr.ChatInterface(
|
| 142 |
-
fn=respond,
|
| 143 |
-
additional_inputs=[mode_state],
|
| 144 |
-
additional_outputs=[mode_state]
|
| 145 |
-
)
|
| 146 |
-
|
| 147 |
# BUTTONS
|
| 148 |
with gr.Row():
|
| 149 |
|
|
@@ -156,6 +149,14 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 156 |
"📖 Story",
|
| 157 |
variant="secondary"
|
| 158 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
|
| 160 |
# BUTTON ACTIONS
|
| 161 |
wellness_btn.click(
|
|
|
|
| 137 |
"Choose a mode using the buttons below:"
|
| 138 |
)
|
| 139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
# BUTTONS
|
| 141 |
with gr.Row():
|
| 142 |
|
|
|
|
| 149 |
"📖 Story",
|
| 150 |
variant="secondary"
|
| 151 |
)
|
| 152 |
+
|
| 153 |
+
# CHAT INTERFACE
|
| 154 |
+
chatbot = gr.ChatInterface(
|
| 155 |
+
fn=respond,
|
| 156 |
+
additional_inputs=[mode_state],
|
| 157 |
+
additional_outputs=[mode_state]
|
| 158 |
+
)
|
| 159 |
+
|
| 160 |
|
| 161 |
# BUTTON ACTIONS
|
| 162 |
wellness_btn.click(
|