Spaces:
Build error
Build error
arxiv id list support
Browse filesFiles changed (2)
- app.py+1-1
- src/Surveyor.py+1-4
8 unmodified lines91011121314158 unmodified lines@st.experimental_singletondef get_surveyor_instance(_print_fn, _survey_print_fn):with st.spinner('Loading The-Surveyor ...'):return Surveyor(_print_fn, _survey_print_fn, refresh_models=True)def run_survey(surveyor, download_placeholder, research_keywords=None, arxiv_ids=None, max_search=None, num_papers=None):8 unmodified lines91011121314158 unmodified lines@st.experimental_singletondef get_surveyor_instance(_print_fn, _survey_print_fn):with st.spinner('Loading The-Surveyor ...'):return Surveyor(_print_fn, _survey_print_fn, high_gpu=True)def run_survey(surveyor, download_placeholder, research_keywords=None, arxiv_ids=None, max_search=None, num_papers=None):
505 unmodified lines506507508509510511512513514515505 unmodified linesfor p in papers:for section in p['sections']:if len(section['highlights']) > 0:if self.high_gpu:content = self.generate_title(section['highlights'])else:content = self.extractive_summary(''.join(section['highlights']))docs.append(content)selected_pids = [p['id'] for p in papers]meta_abs = []505 unmodified lines506507508509510511512505 unmodified linesfor p in papers:for section in p['sections']:if len(section['highlights']) > 0:content = self.extractive_summary(''.join(section['highlights']))docs.append(content)selected_pids = [p['id'] for p in papers]meta_abs = []
app.py+1-1
src/Surveyor.py+1-4