sidphbot commited on
Commit
a864c58
1 Parent(s): 1f3126c

intro and logo

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -2,6 +2,7 @@ from typing import List, Optional
2
  import streamlit as st
3
  import streamlit_pydantic as sp
4
  from pydantic import BaseModel, Field
 
5
 
6
  from src.Surveyor import Surveyor
7
 
@@ -73,15 +74,18 @@ def survey_space(surveyor, download_placeholder):
73
  'num_papers':session_data['research_keywords']})
74
  elif session_data['arxiv_ids'] != '':
75
  run_kwargs.update({'arxiv_ids':[id.strip() for id in session_data['arxiv_ids'].split(',')]})
76
- st.json(run_kwargs)
77
  run_survey(**run_kwargs)
78
 
79
 
80
  if __name__ == '__main__':
81
- st.title('Auto-Research V0.1 - Automated Survey generation from research keywords')
 
 
 
 
82
  std_col, survey_col = st.columns(2)
83
- std_col.header('execution log:')
84
- survey_col.header('Generated_survey:')
85
  download_placeholder = survey_col.container()
86
  surveyor_obj = get_surveyor_instance(_print_fn=std_col.write, _survey_print_fn=survey_col.write)
87
  survey_space(surveyor_obj, survey_col)
 
2
  import streamlit as st
3
  import streamlit_pydantic as sp
4
  from pydantic import BaseModel, Field
5
+ from PIL import Image
6
 
7
  from src.Surveyor import Surveyor
8
 
 
74
  'num_papers':session_data['research_keywords']})
75
  elif session_data['arxiv_ids'] != '':
76
  run_kwargs.update({'arxiv_ids':[id.strip() for id in session_data['arxiv_ids'].split(',')]})
 
77
  run_survey(**run_kwargs)
78
 
79
 
80
  if __name__ == '__main__':
81
+ st.title('Auto-Research')
82
+ st.write('## A no-code utility to generate a detailed well-cited survey with topic clustered sections'
83
+ '(draft paper format) and other interesting artifacts from a single research query or a curated set of papers(arxiv ids).')
84
+ st.write('###Data Provider: arXiv Open Archive Initiative OAI')
85
+ st.sidebar.image(Image.open('sunrise.jpg'), use_column_width = 'always')
86
  std_col, survey_col = st.columns(2)
87
+ std_col.write('#### execution log:')
88
+ survey_col.write('#### Generated_survey:')
89
  download_placeholder = survey_col.container()
90
  surveyor_obj = get_surveyor_instance(_print_fn=std_col.write, _survey_print_fn=survey_col.write)
91
  survey_space(surveyor_obj, survey_col)