Alexey Kalinin commited on
Commit
a8cb422
·
1 Parent(s): 756780e

add no abstracat case

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,8 +36,8 @@ elif input_method == "Manual Input":
36
  title = st.text_input("Enter Article Title:")
37
  abstract = st.text_area("Enter Article Abstract:")
38
  if st.button("Classify"):
39
- if not title or not abstract:
40
- st.error("Please provide both title and abstract.")
41
 
42
  # Classification and output
43
  if title and abstract:
 
36
  title = st.text_input("Enter Article Title:")
37
  abstract = st.text_area("Enter Article Abstract:")
38
  if st.button("Classify"):
39
+ if not title:
40
+ st.error("Please provide title")
41
 
42
  # Classification and output
43
  if title and abstract: