Spaces:
Sleeping
Sleeping
Mr-Vicky-01
commited on
Update app.py
Browse files
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))
|