Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,12 +11,12 @@ ind_to_target = {ind: target for target, ind in target_to_ind.items()}
|
|
11 |
|
12 |
|
13 |
st.title('papers_classifier 🤓')
|
14 |
-
st.text("Hey! I'm papers_classifier and I'm here to help you with answering the question 'WTF is this paper about
|
15 |
According to arXiv there are 8 different fields of study - Computer Science, Economics, Electrical Engineering and Systems Science, Mathematics, Physics, Quantitative Biology, \
|
16 |
-
Quantitative Finance and Statistics. So, everything I'll tell you will be about these eight gentlemen.\
|
17 |
-
You need to give me paper's title and (if you have one) it's abstract. Also you need to choose classification mode - there are 2 of them
|
18 |
-
best prediction and top 95% which means that you'll see as many classes as I need to show you to be confident with probability at least 0.95 that the correct one is among them
|
19 |
-
After that you need to press the Get prediction button and I'll tell you to which fields of study this paper is related. \
|
20 |
")
|
21 |
|
22 |
@st.cache_resource
|
@@ -73,5 +73,5 @@ if st.button("Get prediction", key="manual"):
|
|
73 |
|
74 |
if sum_p >= threshold:
|
75 |
break
|
76 |
-
tags = '\n'.join(tags)
|
77 |
st.success(tags)
|
|
|
11 |
|
12 |
|
13 |
st.title('papers_classifier 🤓')
|
14 |
+
st.text("Hey! I'm papers_classifier and I'm here to help you with answering the question 'WTF is this paper about?\n'
|
15 |
According to arXiv there are 8 different fields of study - Computer Science, Economics, Electrical Engineering and Systems Science, Mathematics, Physics, Quantitative Biology, \
|
16 |
+
Quantitative Finance and Statistics. So, everything I'll tell you will be about these eight gentlemen.\n
|
17 |
+
You need to give me paper's title and (if you have one) it's abstract. Also you need to choose classification mode - there are 2 of them:
|
18 |
+
best prediction and top 95% which means that you'll see as many classes as I need to show you to be confident with probability at least 0.95 that the correct one is among them.\n
|
19 |
+
After that you need to press the Get prediction button and I'll tell you to which fields of study this paper is related. \n
|
20 |
")
|
21 |
|
22 |
@st.cache_resource
|
|
|
73 |
|
74 |
if sum_p >= threshold:
|
75 |
break
|
76 |
+
tags = '\n\n'.join(tags)
|
77 |
st.success(tags)
|