Spaces:
Sleeping
Sleeping
app12
Browse files
app.py
CHANGED
|
@@ -104,8 +104,8 @@ qa_chain = ConversationalRetrievalChain.from_llm(
|
|
| 104 |
get_chat_history = lambda h : h
|
| 105 |
)
|
| 106 |
|
| 107 |
-
def qa_response(user_message,
|
| 108 |
-
response = qa_chain.predict(user_message =
|
| 109 |
return response
|
| 110 |
|
| 111 |
chatbot_gradio_app = gr.ChatInterface(qa_response)
|
|
|
|
| 104 |
get_chat_history = lambda h : h
|
| 105 |
)
|
| 106 |
|
| 107 |
+
def qa_response(user_message,'chat_history'):
|
| 108 |
+
response = qa_chain.predict(user_message = question)
|
| 109 |
return response
|
| 110 |
|
| 111 |
chatbot_gradio_app = gr.ChatInterface(qa_response)
|