Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -60,12 +60,16 @@ def predict(text, tokenizer, model, temperature = 1):
|
|
| 60 |
|
| 61 |
model, tokenizer = get_model('distilbert-base-cased', 'distilbert-checkpoint-10983.bin')
|
| 62 |
|
| 63 |
-
st.title("Yandex School of Data Analysis. ML course
|
| 64 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
st.markdown("Enter the title of the article and its abstract (although, if you really don't want to, you can do with just the title)")
|
| 66 |
|
| 67 |
-
title = st.text_area(label='Title of the article', height=
|
| 68 |
-
abstract = st.text_area(label='Abstract of the article', height=
|
| 69 |
button = st.button('Go')
|
| 70 |
|
| 71 |
if button:
|
|
|
|
| 60 |
|
| 61 |
model, tokenizer = get_model('distilbert-base-cased', 'distilbert-checkpoint-10983.bin')
|
| 62 |
|
| 63 |
+
st.title("Yandex School of Data Analysis. ML course")
|
| 64 |
+
st.title("Laboratory work 2: classifier of categories of scientific papers")
|
| 65 |
+
st.markdown("<img width=100px src='https://m.media-amazon.com/images/I/71XOMSKx8NL._AC_SL1500_.jpg'>", unsafe_allow_html=True)
|
| 66 |
+
|
| 67 |
+
st.markdown()
|
| 68 |
+
|
| 69 |
st.markdown("Enter the title of the article and its abstract (although, if you really don't want to, you can do with just the title)")
|
| 70 |
|
| 71 |
+
title = st.text_area(label='Title of the article', height=100)
|
| 72 |
+
abstract = st.text_area(label='Abstract of the article', height=200)
|
| 73 |
button = st.button('Go')
|
| 74 |
|
| 75 |
if button:
|