Mhassanen commited on
Commit
1363b8f
·
verified ·
1 Parent(s): 00cd1b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -89,7 +89,7 @@ if option == "Text":
89
  combined_text = f"{title_input} [SEP] {keywords_input} [SEP] {abstract_input} [SEP] {full_text_input} [SEP] {affiliations_input} [SEP] {' [SEP] '.join(categories)}"
90
 
91
  if st.button("Predict"):
92
- if not any([title_input, abstract_input, full_text_input, affiliations_input]):
93
  st.warning("Please enter paper text.")
94
  else:
95
  with st.spinner("Predicting..."):
 
89
  combined_text = f"{title_input} [SEP] {keywords_input} [SEP] {abstract_input} [SEP] {full_text_input} [SEP] {affiliations_input} [SEP] {' [SEP] '.join(categories)}"
90
 
91
  if st.button("Predict"):
92
+ if not any([title_input, abstract_input,keywords_input, full_text_input, affiliations_input]):
93
  st.warning("Please enter paper text.")
94
  else:
95
  with st.spinner("Predicting..."):