Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,16 @@
|
|
1 |
import streamlit as st
|
|
|
|
|
|
|
2 |
|
3 |
st.markdown("### Hello, world!")
|
4 |
st.markdown("<img width=200px src='https://rozetked.me/images/uploads/dwoilp3BVjlE.jpg'>", unsafe_allow_html=True)
|
5 |
# ^-- можно показывать пользователю текст, картинки, ограниченное подмножество html - всё как в jupyter
|
6 |
|
7 |
st.markdown("#### Title")
|
8 |
-
title = st.text_area("")
|
9 |
st.markdown("#### Abstract")
|
10 |
-
abstract = st.text_area("")
|
11 |
|
12 |
#from transformers import pipeline
|
13 |
#pipe = pipeline("ner", "Davlan/distilbert-base-multilingual-cased-ner-hrl")
|
|
|
1 |
import streamlit as st
|
2 |
+
import torch
|
3 |
+
import torch.nn as nn
|
4 |
+
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
5 |
|
6 |
st.markdown("### Hello, world!")
|
7 |
st.markdown("<img width=200px src='https://rozetked.me/images/uploads/dwoilp3BVjlE.jpg'>", unsafe_allow_html=True)
|
8 |
# ^-- можно показывать пользователю текст, картинки, ограниченное подмножество html - всё как в jupyter
|
9 |
|
10 |
st.markdown("#### Title")
|
11 |
+
title = st.text_area("Title")
|
12 |
st.markdown("#### Abstract")
|
13 |
+
abstract = st.text_area("Abstract")
|
14 |
|
15 |
#from transformers import pipeline
|
16 |
#pipe = pipeline("ner", "Davlan/distilbert-base-multilingual-cased-ner-hrl")
|