Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ qa_chain = ConversationalRetrievalChain.from_llm(
|
|
| 105 |
)
|
| 106 |
|
| 107 |
def qa_response(user_message, chat_history, context):
|
| 108 |
-
response =
|
| 109 |
return response
|
| 110 |
|
| 111 |
chatbot_gradio_app = gr.ChatInterface(fn=qa_response)
|
|
|
|
| 105 |
)
|
| 106 |
|
| 107 |
def qa_response(user_message, chat_history, context):
|
| 108 |
+
response = qa_chain_chain.predict(user_message, chat_history, context=context)
|
| 109 |
return response
|
| 110 |
|
| 111 |
chatbot_gradio_app = gr.ChatInterface(fn=qa_response)
|