Spaces:
Sleeping
Sleeping
app15
Browse files
app.py
CHANGED
|
@@ -110,6 +110,7 @@ def chat_interface(inputs, chat_history):
|
|
| 110 |
chat_history = inputs[1] # Use integer index 1 for the "Chat History" input
|
| 111 |
# ConversationalRetrievalChain
|
| 112 |
result = qa_chain.run({"question": question, "chat_history": chat_history})
|
|
|
|
| 113 |
return result["answer"]
|
| 114 |
|
| 115 |
chatbot_gradio_app = gr.Interface(
|
|
|
|
| 110 |
chat_history = inputs[1] # Use integer index 1 for the "Chat History" input
|
| 111 |
# ConversationalRetrievalChain
|
| 112 |
result = qa_chain.run({"question": question, "chat_history": chat_history})
|
| 113 |
+
print("Debug: Result from qa_chain.run:", result) # Add this line for debugging
|
| 114 |
return result["answer"]
|
| 115 |
|
| 116 |
chatbot_gradio_app = gr.Interface(
|