Spaces:
Build error
Build error
UI changes
Browse files59 unmodified lines606162636465666768697071727374757677787980816982838485862 unmodified lines89909178798081828384858687888990919259 unmodified lines
def survey_space(surveyor, download_placeholder):
if __name__ == '__main__': st.sidebar.image(Image.open('logo_landscape.png'), use_column_width = 'always') st.title('Auto-Research') st.write('#### A no-code utility to generate a detailed well-cited survey with topic clustered sections' '(draft paper format) and other interesting artifacts from a single research query or a curated set of papers(arxiv ids).') st.write('##### Data Provider: arXiv Open Archive Initiative OAI') st.write('##### GitHub: https://github.com/sidphbot/Auto-Research') download_placeholder = st.container()
with st.sidebar.form(key="survey_keywords_form"): session_data = sp.pydantic_input(key="keywords_input_model", model=KeywordsModel) st.write('or') session_data.update(sp.pydantic_input(key="arxiv_ids_input_model", model=ArxivIDsModel)) submit = st.form_submit_button(label="Submit") st.sidebar.write('#### execution log:') run_kwargs = {'surveyor':surveyor, 'download_placeholder':download_placeholder} run_kwargs = {'surveyor':get_surveyor_instance(_print_fn=st.sidebar.write, _survey_print_fn=st.write), 'download_placeholder':download_placeholder} if submit: if session_data['research_keywords'] != '': run_kwargs.update({'research_keywords':session_data['research_keywords'], 2 unmodified lines elif session_data['arxiv_ids'] != '': run_kwargs.update({'arxiv_ids':[id.strip() for id in session_data['arxiv_ids'].split(',')]}) run_survey(**run_kwargs)
if __name__ == '__main__': st.sidebar.image(Image.open('logo_landscape.png'), use_column_width = 'always') st.title('Auto-Research') st.write('#### A no-code utility to generate a detailed well-cited survey with topic clustered sections' '(draft paper format) and other interesting artifacts from a single research query or a curated set of papers(arxiv ids).') st.write('##### Data Provider: arXiv Open Archive Initiative OAI') st.write('##### GitHub: https://github.com/sidphbot/Auto-Research') survey_row = st.container() download_placeholder = st.container() std_row = st.container() std_row.write('#### execution log:') surveyor_obj = get_surveyor_instance(_print_fn=std_row.write, _survey_print_fn=survey_row.write) survey_space(surveyor_obj, download_placeholder)app.py+15-16