Mr-Vicky-01 commited on
Commit
b9e530e
·
verified ·
1 Parent(s): 5ffa02d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def conversational_chat(query):
40
  global previous_response, provided_docs
41
  for i in st.session_state['history']:
42
  if i is not None:
43
- previous_response += f"Human: {i[0]}\n Chatbot: {i[1]}"
44
  provided_docs = "".join(st.session_state["docs"])
45
  result = llm_chain.predict(chat_history=previous_response, human_input=query, provided_docs=provided_docs)
46
  st.session_state['history'].append((query, result))
 
40
  global previous_response, provided_docs
41
  for i in st.session_state['history']:
42
  if i is not None:
43
+ previous_response += f"Human: {i[0]}\n Chatbot: {i[1]}\n"
44
  provided_docs = "".join(st.session_state["docs"])
45
  result = llm_chain.predict(chat_history=previous_response, human_input=query, provided_docs=provided_docs)
46
  st.session_state['history'].append((query, result))