Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def BuildAnswer(txt):
|
|
72 |
res = round(float(logits[tag.item()].cpu()) * 100)
|
73 |
label = labels_articles[tag.item() + 1]
|
74 |
result.append(f'{res:3d}% - {label}')
|
75 |
-
return '
|
76 |
|
77 |
|
78 |
|
@@ -81,7 +81,7 @@ st.markdown("<img width=200px src='https://rozetked.me/images/uploads/dwoilp3BVj
|
|
81 |
# ^-- можно показывать пользователю текст, картинки, ограниченное подмножество html - всё как в jupyter
|
82 |
|
83 |
title = st.text_area("Title:")
|
84 |
-
abstract = st.text_area("Abstract:", height=
|
85 |
|
86 |
#from transformers import pipeline
|
87 |
#pipe = pipeline("ner", "Davlan/distilbert-base-multilingual-cased-ner-hrl")
|
|
|
72 |
res = round(float(logits[tag.item()].cpu()) * 100)
|
73 |
label = labels_articles[tag.item() + 1]
|
74 |
result.append(f'{res:3d}% - {label}')
|
75 |
+
return ' '.join(result)
|
76 |
|
77 |
|
78 |
|
|
|
81 |
# ^-- можно показывать пользователю текст, картинки, ограниченное подмножество html - всё как в jupyter
|
82 |
|
83 |
title = st.text_area("Title:")
|
84 |
+
abstract = st.text_area("Abstract:", height=400)
|
85 |
|
86 |
#from transformers import pipeline
|
87 |
#pipe = pipeline("ner", "Davlan/distilbert-base-multilingual-cased-ner-hrl")
|