sidphbot commited on
Commit
4988819
1 Parent(s): 4143c64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -87,7 +87,7 @@ if __name__ == '__main__':
87
  '(draft paper format) and other interesting artifacts from a single research query or a curated set of papers(arxiv ids).')
88
  st.write('##### Data Provider: arXiv Open Archive Initiative OAI')
89
  st.write('##### GitHub: https://github.com/sidphbot/Auto-Research')
90
- st.write(f'Note: this is only a demo on cpu-13GB RAM, hence it supports limited number of papers & only {demo_session_limit} parallel user sessions ({st.session_state.session_count} running currently !!)')
91
  download_placeholder = st.container()
92
 
93
  with st.sidebar.form(key="survey_keywords_form"):
@@ -109,7 +109,11 @@ if __name__ == '__main__':
109
  elif session_data['arxiv_ids'] != '':
110
  run_kwargs.update({'arxiv_ids':[id.strip() for id in session_data['arxiv_ids'].split(',')]})
111
  print(run_kwargs)
112
- run_survey(**run_kwargs)
 
 
 
 
113
  else:
114
  st.write(f'{st.session_state.session_count} sessions running, this is a demo and only supports 2 parallel sessions, \n please try in sometime')
115
 
87
  '(draft paper format) and other interesting artifacts from a single research query or a curated set of papers(arxiv ids).')
88
  st.write('##### Data Provider: arXiv Open Archive Initiative OAI')
89
  st.write('##### GitHub: https://github.com/sidphbot/Auto-Research')
90
+ st.write(f'Note: this is only a demo on cpu-13GB RAM, hence it supports limited number of papers & only {demo_session_limit} parallel user sessions')
91
  download_placeholder = st.container()
92
 
93
  with st.sidebar.form(key="survey_keywords_form"):
109
  elif session_data['arxiv_ids'] != '':
110
  run_kwargs.update({'arxiv_ids':[id.strip() for id in session_data['arxiv_ids'].split(',')]})
111
  print(run_kwargs)
112
+ try:
113
+ run_survey(**run_kwargs)
114
+ except:
115
+ st.write('server might be crowded right now, please try later, thank you for your patience)
116
+ pass
117
  else:
118
  st.write(f'{st.session_state.session_count} sessions running, this is a demo and only supports 2 parallel sessions, \n please try in sometime')
119