Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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...'):
|