INLEXIO commited on
Commit
641215d
·
verified ·
1 Parent(s): 4183911

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +19 -10
src/streamlit_app.py CHANGED
@@ -537,25 +537,29 @@ with tab3:
537
  api_author_name = st.text_input(
538
  "Author Name",
539
  placeholder="e.g., John Smith",
540
- help="Search for works by a specific author"
 
541
  )
542
 
543
  api_institution = st.text_input(
544
  "Institution",
545
  placeholder="e.g., Harvard University",
546
- help="Filter by institution/affiliation"
 
547
  )
548
 
549
  api_topic = st.text_input(
550
  "Topic/Keyword",
551
  placeholder="e.g., machine learning",
552
- help="Search by topic or keyword"
 
553
  )
554
 
555
  api_journals = st.text_area(
556
  "Journal(s)",
557
  placeholder="Nature\nScience\nCell",
558
- help="Enter journal names, one per line. Leave blank for all journals."
 
559
  )
560
 
561
  with col2:
@@ -564,7 +568,8 @@ with tab3:
564
  min_value=1900,
565
  max_value=2025,
566
  value=2020,
567
- help="Start year for publication range"
 
568
  )
569
 
570
  api_year_to = st.number_input(
@@ -572,7 +577,8 @@ with tab3:
572
  min_value=1900,
573
  max_value=2025,
574
  value=2025,
575
- help="End year for publication range"
 
576
  )
577
 
578
  api_min_citations = st.number_input(
@@ -580,7 +586,8 @@ with tab3:
580
  min_value=0,
581
  max_value=10000,
582
  value=0,
583
- help="Filter works with at least this many citations"
 
584
  )
585
 
586
  api_max_citations = st.number_input(
@@ -588,7 +595,8 @@ with tab3:
588
  min_value=0,
589
  max_value=100000,
590
  value=0,
591
- help="Filter works with at most this many citations (0 = no limit)"
 
592
  )
593
 
594
  api_max_results = st.number_input(
@@ -597,8 +605,9 @@ with tab3:
597
  max_value=50000,
598
  value=1000,
599
  step=100,
600
- help="Maximum number of works to retrieve (Warning: >10,000 may be slow)"
601
- )
 
602
  api_author_name = st.text_input(
603
  "Author Name",
604
  placeholder="e.g., John Smith",
 
537
  api_author_name = st.text_input(
538
  "Author Name",
539
  placeholder="e.g., John Smith",
540
+ help="Search for works by a specific author",
541
+ key="api_author_name"
542
  )
543
 
544
  api_institution = st.text_input(
545
  "Institution",
546
  placeholder="e.g., Harvard University",
547
+ help="Filter by institution/affiliation",
548
+ key="api_institution"
549
  )
550
 
551
  api_topic = st.text_input(
552
  "Topic/Keyword",
553
  placeholder="e.g., machine learning",
554
+ help="Search by topic or keyword",
555
+ key="api_topic"
556
  )
557
 
558
  api_journals = st.text_area(
559
  "Journal(s)",
560
  placeholder="Nature\nScience\nCell",
561
+ help="Enter journal names, one per line. Leave blank for all journals.",
562
+ key="api_journals"
563
  )
564
 
565
  with col2:
 
568
  min_value=1900,
569
  max_value=2025,
570
  value=2020,
571
+ help="Start year for publication range",
572
+ key="api_year_from"
573
  )
574
 
575
  api_year_to = st.number_input(
 
577
  min_value=1900,
578
  max_value=2025,
579
  value=2025,
580
+ help="End year for publication range",
581
+ key="api_year_to"
582
  )
583
 
584
  api_min_citations = st.number_input(
 
586
  min_value=0,
587
  max_value=10000,
588
  value=0,
589
+ help="Filter works with at least this many citations",
590
+ key="api_min_citations"
591
  )
592
 
593
  api_max_citations = st.number_input(
 
595
  min_value=0,
596
  max_value=100000,
597
  value=0,
598
+ help="Filter works with at most this many citations (0 = no limit)",
599
+ key="api_max_citations"
600
  )
601
 
602
  api_max_results = st.number_input(
 
605
  max_value=50000,
606
  value=1000,
607
  step=100,
608
+ help="Maximum number of works to retrieve (Warning: >10,000 may be slow)",
609
+ key="api_max_results"
610
+ ):
611
  api_author_name = st.text_input(
612
  "Author Name",
613
  placeholder="e.g., John Smith",