mehradans92 commited on
Commit
e428506
·
1 Parent(s): f1ef836

streamlit doesn't support nested columns :(

Browse files
Files changed (1) hide show
  1. app.py +11 -12
app.py CHANGED
@@ -43,7 +43,7 @@ def search_click_callback(search_query, max_results, XRxiv_servers=[]):
43
  return pdf_info
44
 
45
  with st.form(key='columns_in_form', clear_on_submit = False):
46
- c1, c2, c3 = st.columns([5, 0.8, 4])
47
  with c1:
48
  search_query = st.text_input("Input search query here:", placeholder='Keywords for most relevant search...', value=''
49
  )#search_query, max_results_current))
@@ -51,17 +51,16 @@ with st.form(key='columns_in_form', clear_on_submit = False):
51
  with c2:
52
  max_results = st.number_input("Max papers", value=max_results_current)
53
  max_results_current = max_results_current
54
- with c3:
55
- st.markdown('Pre-print server')
56
- checks = st.columns(4)
57
- with checks[0]:
58
- ArXiv_check = st.checkbox('ArXiv')
59
- with checks[1]:
60
- ChemArXiv_check = st.checkbox('ChemArXiv')
61
- with checks[2]:
62
- BioArXiv_check = st.checkbox('BioArXiv')
63
- with checks[3]:
64
- MedrXiv_check = st.checkbox('MedrXiv')
65
 
66
  searchButton = st.form_submit_button(label = 'Search')
67
 
 
43
  return pdf_info
44
 
45
  with st.form(key='columns_in_form', clear_on_submit = False):
46
+ c1, c2 = st.columns([5, 0.8])
47
  with c1:
48
  search_query = st.text_input("Input search query here:", placeholder='Keywords for most relevant search...', value=''
49
  )#search_query, max_results_current))
 
51
  with c2:
52
  max_results = st.number_input("Max papers", value=max_results_current)
53
  max_results_current = max_results_current
54
+ st.markdown('Pre-print server')
55
+ checks = st.columns(4)
56
+ with checks[0]:
57
+ ArXiv_check = st.checkbox('ArXiv')
58
+ with checks[1]:
59
+ ChemArXiv_check = st.checkbox('ChemArXiv')
60
+ with checks[2]:
61
+ BioArXiv_check = st.checkbox('BioArXiv')
62
+ with checks[3]:
63
+ MedrXiv_check = st.checkbox('MedrXiv')
 
64
 
65
  searchButton = st.form_submit_button(label = 'Search')
66