suriya7 commited on
Commit
83e1ac9
·
verified ·
1 Parent(s): 9a54747

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -32,7 +32,7 @@ Document Content Provided:
32
  Extracted URL Text:
33
  {extracted_text}
34
 
35
- If the human asks about the content from a URL, please use the information from the 'Extracted URL Text' to provide detailed answers. If the question pertains to general knowledge or other information, use what you know.
36
 
37
  Human: {human_input}
38
  Chatbot: """
@@ -58,6 +58,7 @@ def conversational_chat(query):
58
  previous_response = "".join([f"Human: {i[0]}\nChatbot: {i[1]}" for i in st.session_state['history'] if i is not None])
59
  provided_docs = "".join([doc for doc in st.session_state["docs"] if doc is not None])
60
  extracted_text = "".join([text for text in st.session_state["extracted_text"] if text is not None])
 
61
 
62
  result = llm_chain.predict(
63
  chat_history=previous_response,
 
32
  Extracted URL Text:
33
  {extracted_text}
34
 
35
+ NOTE: If the human asks Question about the url or Given url , please use the information from the 'Extracted URL Text' to provide detailed answers.
36
 
37
  Human: {human_input}
38
  Chatbot: """
 
58
  previous_response = "".join([f"Human: {i[0]}\nChatbot: {i[1]}" for i in st.session_state['history'] if i is not None])
59
  provided_docs = "".join([doc for doc in st.session_state["docs"] if doc is not None])
60
  extracted_text = "".join([text for text in st.session_state["extracted_text"] if text is not None])
61
+ print(extracted_text)
62
 
63
  result = llm_chain.predict(
64
  chat_history=previous_response,