mtyrrell commited on
Commit
064a74e
·
1 Parent(s): b1228c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -200,7 +200,8 @@ document_store = PineconeDocumentStore(api_key=pinecone_key,
200
  retriever = EmbeddingRetriever(
201
  document_store=document_store,
202
  embedding_model="sentence-transformers/multi-qa-mpnet-base-dot-v1",
203
- model_format="sentence_transformers"
 
204
  )
205
 
206
 
@@ -258,12 +259,12 @@ else:
258
  client = InferenceClient()
259
 
260
 
 
261
 
262
-
263
- if selected_example == "-":
264
- text = st.text_area('Enter your question in the text box below using natural language or select an example from above:')
265
- else:
266
- text = st.text_area('Enter your question in the text box below using natural language or select an example from above:', value=selected_example)
267
 
268
 
269
  if st.button('Submit'):
 
200
  retriever = EmbeddingRetriever(
201
  document_store=document_store,
202
  embedding_model="sentence-transformers/multi-qa-mpnet-base-dot-v1",
203
+ model_format="sentence_transformers",
204
+ progress_bar=False,
205
  )
206
 
207
 
 
259
  client = InferenceClient()
260
 
261
 
262
+ text = st.text_area('Enter your question in the text box below using natural language or select an example from above:')
263
 
264
+ # if selected_example == "-":
265
+ # text = st.text_area('Enter your question in the text box below using natural language or select an example from above:')
266
+ # else:
267
+ # text = st.text_area('Enter your question in the text box below using natural language or select an example from above:', value=selected_example)
 
268
 
269
 
270
  if st.button('Submit'):