Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,10 @@ def main():
|
|
| 49 |
query = st.text_input("Type your question:", key="query")
|
| 50 |
if query:
|
| 51 |
with st.spinner("Finding your answer..."):
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
display_chat_history()
|
| 55 |
|
|
|
|
| 49 |
query = st.text_input("Type your question:", key="query")
|
| 50 |
if query:
|
| 51 |
with st.spinner("Finding your answer..."):
|
| 52 |
+
qa_start_time = time.time()
|
| 53 |
+
docs = docsearch.similarity_search(query)
|
| 54 |
+
response = chain.run(input_documents=docs, question=query)
|
| 55 |
+
qa_end_time = time.time()
|
| 56 |
|
| 57 |
display_chat_history()
|
| 58 |
|