balkite commited on
Commit
482b320
1 Parent(s): 70cbeb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def on_query():
28
  def handle_userinput(user_question):
29
  res = st.session_state.model({'query': user_question})
30
  answer, docs = res["result"], res["source_documents"]
31
- source = sources_ref[basename(docs[0].metadata["source"])]
32
 
33
  st.session_state.chat_history.insert(0, user_question)
34
  # st.session_state.chat_history.insert(1, answer + "<br><br><em>Source: " + source)
 
28
  def handle_userinput(user_question):
29
  res = st.session_state.model({'query': user_question})
30
  answer, docs = res["result"], res["source_documents"]
31
+ # source = sources_ref[basename(docs[0].metadata["source"])]
32
 
33
  st.session_state.chat_history.insert(0, user_question)
34
  # st.session_state.chat_history.insert(1, answer + "<br><br><em>Source: " + source)