Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def main():
|
|
38 |
embeddings = OpenAIEmbeddings()
|
39 |
knowledge_base = FAISS.from_texts(chunks, embeddings)
|
40 |
|
41 |
-
user_question = st.text_input("Ask a question about
|
42 |
if user_question:
|
43 |
docs = knowledge_base.similarity_search(user_question)
|
44 |
|
|
|
38 |
embeddings = OpenAIEmbeddings()
|
39 |
knowledge_base = FAISS.from_texts(chunks, embeddings)
|
40 |
|
41 |
+
user_question = st.text_input(f"Ask a question about '{pdf_file.name}':", key=f"question_{idx}")
|
42 |
if user_question:
|
43 |
docs = knowledge_base.similarity_search(user_question)
|
44 |
|