vladyur commited on
Commit
c07a06a
·
1 Parent(s): c0b8512

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -73,13 +73,13 @@ abstract = st.text_area(label='Abstract of the article', height=200)
73
  button = st.button('Go')
74
 
75
  if button:
76
- #try:
77
- text = ' [ABSTRACT] '.join([title, abstract])
78
- result = predict(text, tokenizer, model)
79
- if len(text) > 10:
80
- st.subheader('I think, this paper related to')
81
- st.write(result)
82
- else:
83
- st.error("Enter some more info please")
84
- #except Exception:
85
- # st.error("Ooooops, something went wrong. Try again please and report to me, tg: @vladyur")
 
73
  button = st.button('Go')
74
 
75
  if button:
76
+ try:
77
+ text = ' [ABSTRACT] '.join([title, abstract])
78
+ result = predict(text, tokenizer, model)
79
+ if len(text) > 10:
80
+ st.subheader('Bumblebee thinks, this paper related to')
81
+ st.write(result)
82
+ else:
83
+ st.error("Enter some more info please")
84
+ except Exception:
85
+ st.error("Ooooops, something went wrong. Try again please and report to me, tg: @vladyur")