Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|