mpsk commited on
Commit
866c8cc
1 Parent(s): 6a15d51

temp disable Ask (will be back soon!)

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -112,15 +112,18 @@ if 'retriever' not in st.session_state:
112
  st.info("Chat with 2 milions arxiv papers, powered by [MyScale](https://myscale.com)", icon="🌟")
113
  st.info("We provides you metadata columns below for query. Please choose a natural expression to describe filters on those columns.\n\n" +
114
  "For example: \n\n" +
 
 
115
  "- Introduce some applications of GANs published around 2019.\n" +
116
  "- 请根据 2019 年左右的文章介绍一下 GAN 的应用都有哪些?" +
117
  "- Veuillez présenter les applications du GAN sur la base des articles autour de 2019 ?")
118
- st.info("You can retrieve papers with button `Query` or ask questions based on retrieved papers with button `Ask`.", icon='💡')
 
119
  st.dataframe(st.session_state.metadata_columns)
120
  st.text_input("Ask a question:", key='query')
121
  cols = st.columns([1, 1, 7])
122
  cols[0].button("Query", key='search')
123
- cols[1].button("Ask", key='ask')
124
  plc_hldr = st.empty()
125
 
126
  if st.session_state.search:
 
112
  st.info("Chat with 2 milions arxiv papers, powered by [MyScale](https://myscale.com)", icon="🌟")
113
  st.info("We provides you metadata columns below for query. Please choose a natural expression to describe filters on those columns.\n\n" +
114
  "For example: \n\n" +
115
+ "- What is a Bayesian network? Please use articles published later than Feb 2018 and with more than 2 categories and whose title like `computer` and must have `cs.CV` in its category.\n" +
116
+ "- What is neural network? Please use articles published by Geoffrey Hinton after 2018.\n" +
117
  "- Introduce some applications of GANs published around 2019.\n" +
118
  "- 请根据 2019 年左右的文章介绍一下 GAN 的应用都有哪些?" +
119
  "- Veuillez présenter les applications du GAN sur la base des articles autour de 2019 ?")
120
+ # or ask questions based on retrieved papers with button `Ask`
121
+ st.info("You can retrieve papers with button `Query`", icon='💡')
122
  st.dataframe(st.session_state.metadata_columns)
123
  st.text_input("Ask a question:", key='query')
124
  cols = st.columns([1, 1, 7])
125
  cols[0].button("Query", key='search')
126
+ # cols[1].button("Ask", key='ask')
127
  plc_hldr = st.empty()
128
 
129
  if st.session_state.search: