daniilkk commited on
Commit
297af0e
·
verified ·
1 Parent(s): eda7f62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -66,12 +66,12 @@ def main(threshold: float = 0.5):
66
 
67
  col1, col2 = st.columns([1, 1])
68
  with col1:
69
- title = st.text_area("Title", height=200, placeholder="Enter paper title here...", )
70
  with col2:
71
  abstract = st.text_area("Abstract (optional)", height=200, placeholder="Enter paper abstract here...")
72
 
73
  if st.button("Classify", type='primary', use_container_width=True):
74
- if not title:
75
  st.error("Please enter a paper title")
76
  else:
77
  with st.spinner('In progress...'):
 
66
 
67
  col1, col2 = st.columns([1, 1])
68
  with col1:
69
+ title = st.text_area("Title", height=200, placeholder="Enter paper title here...", ).strip()
70
  with col2:
71
  abstract = st.text_area("Abstract (optional)", height=200, placeholder="Enter paper abstract here...")
72
 
73
  if st.button("Classify", type='primary', use_container_width=True):
74
+ if len(title) == 0:
75
  st.error("Please enter a paper title")
76
  else:
77
  with st.spinner('In progress...'):