Update app.py
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ if selected_category == "Other":
|
|
83 |
|
84 |
combined_text = f"{title_input} [SEP] {keywords_input} [SEP] {abstract_input} [SEP] {selected_category} [SEP] {affiliations_input}"
|
85 |
if st.button("Predict"):
|
86 |
-
if not any([title_input, abstract_input, keywords_input,
|
87 |
st.warning("Please enter paper text.")
|
88 |
else:
|
89 |
with st.spinner("Predicting..."):
|
|
|
83 |
|
84 |
combined_text = f"{title_input} [SEP] {keywords_input} [SEP] {abstract_input} [SEP] {selected_category} [SEP] {affiliations_input}"
|
85 |
if st.button("Predict"):
|
86 |
+
if not any([title_input, abstract_input, keywords_input, affiliations_input]):
|
87 |
st.warning("Please enter paper text.")
|
88 |
else:
|
89 |
with st.spinner("Predicting..."):
|