elinstallation commited on
Commit
cceb535
·
verified ·
1 Parent(s): 6893abc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -121,8 +121,8 @@ def respond(message,history):
121
  topic_chunks = get_top_chunks(message, charity_embeddings, cleaned_charities)
122
  elif chatbot_topic and "Financial Aid" in chatbot_topic:
123
  topic_chunks = get_top_chunks(message, finance_embeddings, cleaned_finance)
124
-
125
-
126
  #return information
127
  #return topic_chunks
128
  chatbot_mode=="Advice Mode"
@@ -210,7 +210,7 @@ with gr.Blocks(
210
  #elem_classes=["download-btn"])
211
 
212
  gr.ChatInterface(
213
- fn=respond,
214
  title="Finance Management Hub",
215
  description="Ask about your personal finance",
216
  type="messages",
 
121
  topic_chunks = get_top_chunks(message, charity_embeddings, cleaned_charities)
122
  elif chatbot_topic and "Financial Aid" in chatbot_topic:
123
  topic_chunks = get_top_chunks(message, finance_embeddings, cleaned_finance)
124
+
125
+
126
  #return information
127
  #return topic_chunks
128
  chatbot_mode=="Advice Mode"
 
210
  #elem_classes=["download-btn"])
211
 
212
  gr.ChatInterface(
213
+ fn=lambda msg, hist: respond(msg, hist, chatbot_topic.value, chatbot_mode.value),
214
  title="Finance Management Hub",
215
  description="Ask about your personal finance",
216
  type="messages",