ALVHB95 commited on
Commit
352475d
·
1 Parent(s): 8816c40
Files changed (1) hide show
  1. app.py +1 -0
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(