Spaces:
Running
Running
app13
Browse files
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"
|
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(
|
|
|
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(
|