ziyingsk commited on
Commit
47ca65e
·
verified ·
1 Parent(s): 9720472

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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
- with st.form(key='my_form'):
86
- sample_query = st.text_input("Stellen Sie eine Frage zu dem PDF: (Ask a question related to the PDF:)")
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()