ki33elev commited on
Commit
f07e807
1 Parent(s): 7220758

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -41,6 +41,9 @@ def get_results(prediction, prediction_probs):
41
  for (topic, prob) in zip(prediction, prediction_probs):
42
  ans += topic + "\t\t" + str(prob) + "\n"
43
  return ans
 
 
 
44
 
45
  st.title("Arxiv articles classification")
46
  st.markdown("This is an interface that can determine the article's topic based on its title and summary. Though it can work with title only, it is recommended that you provide summary if possible - this will result in a better prediction quality.")
 
41
  for (topic, prob) in zip(prediction, prediction_probs):
42
  ans += topic + "\t\t" + str(prob) + "\n"
43
  return ans
44
+
45
+ label_to_theme = {0: 'Computer science', 1: 'Economics', 2: 'Electrical Engineering and Systems Science', 3: 'Math',
46
+ 4: 'Quantitative biology', 5: 'Quantitative Finance', 6: 'Statistics', 7: 'Physics'}
47
 
48
  st.title("Arxiv articles classification")
49
  st.markdown("This is an interface that can determine the article's topic based on its title and summary. Though it can work with title only, it is recommended that you provide summary if possible - this will result in a better prediction quality.")