sidphbot commited on
Commit
cea2a96
·
1 Parent(s): bbba200

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -3,7 +3,7 @@ import pandas as pd
3
  import numpy as np
4
 
5
  from src.Surveyor import Surveyor
6
- from streamlit_tags import st_tags
7
 
8
 
9
  @st.experimental_singleton(show_spinner=True, suppress_st_warning=True)
@@ -42,7 +42,7 @@ def show_survey_download(zip_file_name, survey_file_name, download_placeholder):
42
  def survey_space(surveyor, download_placeholder):
43
 
44
  form = st.sidebar.form(key='survey_form')
45
- research_keywords = form.text_input("What would you like to research in today?", key='research_keywords', value='')
46
  max_search = form.number_input("num_papers_to_search", help="maximium number of papers to glance through - defaults to 20",
47
  min_value=1, max_value=50, value=10, step=1, key='max_search')
48
  num_papers = form.number_input("num_papers_to_select", help="maximium number of papers to select and analyse - defaults to 8",
@@ -50,10 +50,10 @@ def survey_space(surveyor, download_placeholder):
50
 
51
  form.write('or')
52
 
53
- arxiv_ids = st_tags(
54
- label='# Enter arxiv ids for your curated set of papers:',
55
  value=[],
56
- text='Press enter to add more (e.g. 1605.08386v1, ...)',
57
  maxtags = 6,
58
  key='arxiv_ids')
59
 
 
3
  import numpy as np
4
 
5
  from src.Surveyor import Surveyor
6
+ from streamlit_tags import st_sidebar_tags
7
 
8
 
9
  @st.experimental_singleton(show_spinner=True, suppress_st_warning=True)
 
42
  def survey_space(surveyor, download_placeholder):
43
 
44
  form = st.sidebar.form(key='survey_form')
45
+ research_keywords = form.text_input("Enter your research keywords:", key='research_keywords', value='')
46
  max_search = form.number_input("num_papers_to_search", help="maximium number of papers to glance through - defaults to 20",
47
  min_value=1, max_value=50, value=10, step=1, key='max_search')
48
  num_papers = form.number_input("num_papers_to_select", help="maximium number of papers to select and analyse - defaults to 8",
 
50
 
51
  form.write('or')
52
 
53
+ arxiv_ids = st_sidebar_tags(
54
+ label='Enter arxiv ids for your curated set of papers (1-by-1):',
55
  value=[],
56
+ text='Press enter to add more (e.g. 2205.12755, 2205.10937, 1605.08386v1 ...)',
57
  maxtags = 6,
58
  key='arxiv_ids')
59