ALVHB95 commited on
Commit
8816c40
·
1 Parent(s): 9addd4a
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -105,10 +105,10 @@ qa_chain = ConversationalRetrievalChain.from_llm(
105
  )
106
 
107
 
108
- def chat_interface(inputs,chat_history):
109
- question = inputs["question"]
110
- chat_history = inputs["chat_history"]
111
- # Assuming `chain` is your instance of ConversationalRetrievalChain
112
  result = qa_chain.run({"question": question, "chat_history": chat_history})
113
  return result["answer"]
114
 
 
105
  )
106
 
107
 
108
+ def chat_interface(inputs, chat_history):
109
+ question = inputs[0] # Use integer index 0 for the "Question" input
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