Spaces:
Running
Running
Update app.py
#1
by
mpsk
- opened
app.py
CHANGED
@@ -111,15 +111,19 @@ if 'retriever' not in st.session_state:
|
|
111 |
build_retriever()
|
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
|
116 |
-
|
117 |
-
|
|
|
|
|
|
|
|
|
118 |
st.dataframe(st.session_state.metadata_columns)
|
119 |
st.text_input("Ask a question:", key='query')
|
120 |
cols = st.columns([1, 1, 7])
|
121 |
cols[0].button("Query", key='search')
|
122 |
-
cols[1].button("Ask", key='ask')
|
123 |
plc_hldr = st.empty()
|
124 |
|
125 |
if st.session_state.search:
|
|
|
111 |
build_retriever()
|
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:
|