Mhassanen commited on
Commit
e04e28c
·
verified ·
1 Parent(s): f0a2852

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -78,7 +78,7 @@ if option == "Text":
78
  custom_category = st.text_input("Enter custom category:")
79
  selected_category = custom_category if custom_category else "Other"
80
 
81
- combined_text = f"{title_input} [SEP] {keywords_input} [SEP] {abstract_input} [SEP] {full_text_input} [SEP] {affiliations_input} [SEP] {' [SEP] '.join(selected_categories)}"
82
 
83
  if st.button("Predict"):
84
  if not any([title_input, abstract_input,keywords_input, full_text_input, affiliations_input]):
 
78
  custom_category = st.text_input("Enter custom category:")
79
  selected_category = custom_category if custom_category else "Other"
80
 
81
+ combined_text = f"{title_input} [SEP] {keywords_input} [SEP] {abstract_input} [SEP] {full_text_input} [SEP] {affiliations_input} [SEP] {' [SEP] '.join(selected_category)}"
82
 
83
  if st.button("Predict"):
84
  if not any([title_input, abstract_input,keywords_input, full_text_input, affiliations_input]):