Geraldine commited on
Commit
a6e11ee
1 Parent(s): 92aa9e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -41,9 +41,10 @@ model_option = st.sidebar.selectbox("Choose the open embeddings model to use ?",
41
 
42
  with st.container():
43
  if query := st.text_input(
44
- ":green[Enter your question :]"):
45
- st.markdown(f"### :blue[{model_option} results]")
46
- with st.expander("click here to see the HAL search engine results"):
 
47
  components.iframe(f"https://hal.univ-cotedazur.fr/search/index/?q={query}&rows=30&docType_s=ART", height=800, scrolling=True)
48
  with st.spinner('Calculating...'):
49
  response = llm_response(query, model_option)
 
41
 
42
  with st.container():
43
  if query := st.text_input(
44
+ "Enter your question :"):
45
+ st.markdown(f"### :green[{model_option} results]")
46
+ models = ['all-MiniLM-L6-v2', 'all-mpnet-base-v2']
47
+ with st.expander(":globe_with_meridians: :blue[click here to see the HAL search engine results]"):
48
  components.iframe(f"https://hal.univ-cotedazur.fr/search/index/?q={query}&rows=30&docType_s=ART", height=800, scrolling=True)
49
  with st.spinner('Calculating...'):
50
  response = llm_response(query, model_option)