Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import streamlit as st
|
2 |
-
from streamlit_pills import pills
|
3 |
import torch
|
4 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
5 |
import fitz
|
@@ -62,9 +62,9 @@ if option == "Text":
|
|
62 |
affiliations_input = st.text_area("Enter Affiliations:")
|
63 |
options=["Nursing", "Physics", "Maths", "Chemical", "Nuclear", "Engineering" ,"Other"]
|
64 |
|
65 |
-
categories = pills("Select WoS category", options)
|
66 |
|
67 |
-
|
68 |
|
69 |
combined_text = f"{title_input} [SEP] {abstract_input} [SEP] {full_text_input} [SEP] {affiliations_input} [SEP] {' [SEP] '.join(categories)}"
|
70 |
|
|
|
1 |
import streamlit as st
|
2 |
+
#from streamlit_pills import pills
|
3 |
import torch
|
4 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
5 |
import fitz
|
|
|
62 |
affiliations_input = st.text_area("Enter Affiliations:")
|
63 |
options=["Nursing", "Physics", "Maths", "Chemical", "Nuclear", "Engineering" ,"Other"]
|
64 |
|
65 |
+
#categories = pills("Select WoS category", options)
|
66 |
|
67 |
+
categories = st.multiselect("Select WoS categories:", options)
|
68 |
|
69 |
combined_text = f"{title_input} [SEP] {abstract_input} [SEP] {full_text_input} [SEP] {affiliations_input} [SEP] {' [SEP] '.join(categories)}"
|
70 |
|