Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -146,6 +146,10 @@ def respond(message, history, chatbot_topic_values, user_id=1):
|
|
| 146 |
elif chatbot_topic_values and "Financial Aid" in chatbot_topic_values:
|
| 147 |
topic_chunks = get_top_chunks(message, finance_embeddings, cleaned_finance)
|
| 148 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
csv_advice = get_advice(user_id)
|
| 150 |
role_message = (
|
| 151 |
"You are a helpful and insightful chatbot who acts like a financial "
|
|
@@ -241,7 +245,7 @@ with gr.Blocks(
|
|
| 241 |
title="Finance Management Hub",
|
| 242 |
description="Ask about your personal finance",
|
| 243 |
type="messages",
|
| 244 |
-
additional_inputs=[chatbot_topic
|
| 245 |
)
|
| 246 |
#launching chatbot
|
| 247 |
demo.launch()
|
|
|
|
| 146 |
elif chatbot_topic_values and "Financial Aid" in chatbot_topic_values:
|
| 147 |
topic_chunks = get_top_chunks(message, finance_embeddings, cleaned_finance)
|
| 148 |
|
| 149 |
+
topic_chunks += get_top_chunks(message, un_embeddings, cleaned_un)
|
| 150 |
+
topic_chunks += get_top_chunks(message, investopedia_embeddings, cleaned_investopedia)
|
| 151 |
+
topic_chunks += get_top_chunks(message, cgf_embeddings, cleaned_cgf)
|
| 152 |
+
|
| 153 |
csv_advice = get_advice(user_id)
|
| 154 |
role_message = (
|
| 155 |
"You are a helpful and insightful chatbot who acts like a financial "
|
|
|
|
| 245 |
title="Finance Management Hub",
|
| 246 |
description="Ask about your personal finance",
|
| 247 |
type="messages",
|
| 248 |
+
additional_inputs=[chatbot_topic]
|
| 249 |
)
|
| 250 |
#launching chatbot
|
| 251 |
demo.launch()
|