Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -233,12 +233,18 @@ with gr.Blocks(
|
|
| 233 |
#visible=True,
|
| 234 |
#elem_classes=["download-btn"])
|
| 235 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
gr.ChatInterface(
|
| 237 |
fn=lambda msg, hist: respond(msg, hist, chatbot_topic.value, chatbot_mode.value),
|
| 238 |
title="Finance Management Hub",
|
| 239 |
description="Ask about your personal finance",
|
| 240 |
type="messages",
|
|
|
|
| 241 |
)
|
| 242 |
-
|
| 243 |
#launching chatbot
|
| 244 |
demo.launch()
|
|
|
|
| 233 |
#visible=True,
|
| 234 |
#elem_classes=["download-btn"])
|
| 235 |
|
| 236 |
+
# gr.ChatInterface(
|
| 237 |
+
# fn=lambda msg, hist: respond(msg, hist, chatbot_topic.value, chatbot_mode.value),
|
| 238 |
+
# title="Finance Management Hub",
|
| 239 |
+
# description="Ask about your personal finance",
|
| 240 |
+
# type="messages",
|
| 241 |
+
#)
|
| 242 |
gr.ChatInterface(
|
| 243 |
fn=lambda msg, hist: respond(msg, hist, chatbot_topic.value, chatbot_mode.value),
|
| 244 |
title="Finance Management Hub",
|
| 245 |
description="Ask about your personal finance",
|
| 246 |
type="messages",
|
| 247 |
+
additional_inputs=[chatbot_topic, chatbot_mode]
|
| 248 |
)
|
|
|
|
| 249 |
#launching chatbot
|
| 250 |
demo.launch()
|