Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,16 @@ target_to_label = {'cs': 'Computer Science', 'econ': 'Economics', 'eess': 'Elect
|
|
9 |
ind_to_target = {ind: target for target, ind in target_to_ind.items()}
|
10 |
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
@st.cache_resource
|
13 |
def load_model_and_tokenizer():
|
14 |
model_name = 'distilbert/distilbert-base-cased'
|
|
|
9 |
ind_to_target = {ind: target for target, ind in target_to_ind.items()}
|
10 |
|
11 |
|
12 |
+

|
13 |
+
|
14 |
+
st.title('papers_classifier - your best friend in 🤓')
|
15 |
+
st.text('You need to give me paper's title and (if you want to) it's abstract. Also you need to choose classification mode - there are 2 of them:\
|
16 |
+
best prediction and top 95% which means that you'll see as many classes as model needs to show to be confident with probability at least 0.95 that the correct one is among them. \
|
17 |
+
After that you need to press the Get prediction button and I'll tell you to which fields of study this paper is related. \
|
18 |
+
According to arXiv there are 8 different fields - Computer Science, Economics, Electrical Engineering and Systems Science, Mathematics, Physics, Quantitative Biology, \
|
19 |
+
Quantitative Finance and Statistics.\
|
20 |
+
')
|
21 |
+
|
22 |
@st.cache_resource
|
23 |
def load_model_and_tokenizer():
|
24 |
model_name = 'distilbert/distilbert-base-cased'
|