Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
except Exception:
|
| 85 |
-
|
|
|
|
| 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")
|