Mhassanen commited on
Commit
30260d0
·
verified ·
1 Parent(s): da989af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -79,6 +79,11 @@ if option == "Text":
79
  #categories = pills("Select WoS category", options)
80
 
81
  categories = st.multiselect("Select WoS categories:", options)
 
 
 
 
 
82
 
83
  combined_text = f"{title_input} [SEP] {abstract_input} [SEP] {full_text_input} [SEP] {affiliations_input} [SEP] {' [SEP] '.join(categories)}"
84
 
 
79
  #categories = pills("Select WoS category", options)
80
 
81
  categories = st.multiselect("Select WoS categories:", options)
82
+ if selected_category == "Other":
83
+ custom_category = st.text_input("Enter custom category:")
84
+ selected_category = custom_category if custom_category else "Other"
85
+
86
+
87
 
88
  combined_text = f"{title_input} [SEP] {abstract_input} [SEP] {full_text_input} [SEP] {affiliations_input} [SEP] {' [SEP] '.join(categories)}"
89