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