Update app.py
Browse files
app.py
CHANGED
@@ -82,10 +82,8 @@ if uploaded_file is not None:
|
|
82 |
index.upsert(vectors=ids_vectors_chunk) # creating a second namespace could fix the index0 bug!
|
83 |
|
84 |
# Input for the search query
|
85 |
-
|
86 |
-
|
87 |
-
submit_button = st.form_submit_button(label='Abschicken (Submit)')
|
88 |
-
if submit_button:
|
89 |
if uploaded_file is not None and sample_query:
|
90 |
# Encode the query and search in the Pinecone index
|
91 |
query_vector = embedding.encode(sample_query).tolist()
|
|
|
82 |
index.upsert(vectors=ids_vectors_chunk) # creating a second namespace could fix the index0 bug!
|
83 |
|
84 |
# Input for the search query
|
85 |
+
sample_query = st.text_input("Stellen Sie eine Frage zu dem PDF: (Ask a question related to the PDF:)")
|
86 |
+
if st.button("Abschicken (Submit)"):
|
|
|
|
|
87 |
if uploaded_file is not None and sample_query:
|
88 |
# Encode the query and search in the Pinecone index
|
89 |
query_vector = embedding.encode(sample_query).tolist()
|