Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -74,6 +74,7 @@ if option == "Text":
|
|
74 |
abstract_input = st.text_area("Enter Abstract:")
|
75 |
full_text_input = st.text_area("Enter Full Text:")
|
76 |
affiliations_input = st.text_area("Enter Affiliations:")
|
|
|
77 |
options=["Nursing", "Physics", "Maths", "Chemical", "Nuclear", "Engineering" ,"Other"]
|
78 |
|
79 |
#categories = pills("Select WoS category", options)
|
@@ -85,7 +86,7 @@ if option == "Text":
|
|
85 |
|
86 |
|
87 |
|
88 |
-
combined_text = f"{title_input} [SEP] {abstract_input} [SEP] {full_text_input} [SEP] {affiliations_input} [SEP] {' [SEP] '.join(categories)}"
|
89 |
|
90 |
if st.button("Predict"):
|
91 |
if not any([title_input, abstract_input, full_text_input, affiliations_input]):
|
|
|
74 |
abstract_input = st.text_area("Enter Abstract:")
|
75 |
full_text_input = st.text_area("Enter Full Text:")
|
76 |
affiliations_input = st.text_area("Enter Affiliations:")
|
77 |
+
keywords_input = st.text_area("Enter Keywords:")
|
78 |
options=["Nursing", "Physics", "Maths", "Chemical", "Nuclear", "Engineering" ,"Other"]
|
79 |
|
80 |
#categories = pills("Select WoS category", options)
|
|
|
86 |
|
87 |
|
88 |
|
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]):
|