ALVHB95 commited on
Commit
d78b95e
·
1 Parent(s): 14138ac
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -112,10 +112,10 @@ def qa_response(question, chat_history):
112
  response = qa_chain.invoke(chat_history)
113
 
114
  # Extract and return the assistant's answer from the response
115
- assistant_answer = response.get("answer", "I don't know.")
116
- return assistant_answer + " thanks for asking!"
117
 
118
- chatbot_gradio_app = gr.ChatInterface(fn=qa_response, live=True)
119
 
120
  # Combine both interfaces into a single app
121
  gr.TabbedInterface(
 
112
  response = qa_chain.invoke(chat_history)
113
 
114
  # Extract and return the assistant's answer from the response
115
+ assistant_answer = response.get("answer")
116
+ return assistant_answer
117
 
118
+ chatbot_gradio_app = gr.ChatInterface(fn=qa_response)
119
 
120
  # Combine both interfaces into a single app
121
  gr.TabbedInterface(