TovaHasi's picture
Update app.py
f82683e
raw
history blame
500 Bytes
import streamlit as st
st.markdown('### Hello, world!')
st.markdown("<img src='https://sun9-29.userapi.com/impg/XsnLY87wXQfninjPBb9NMaKpmRJfBcvSugQwXw/67T6-XmLNRc.jpg?size=900x600&quality=96&sign=7f8fd7d50dfd16ab81dba4db2a9d313b&c_uniq_tag=Tow2HrDf6VsRmeScG7n6RVm65qghWaWRfdrhDlTE28o&type=album'>", unsafe_allow_html=True)
from transformers import pipeline
pipe = pipeline("ner", "Davlan/distilbert-base-multilingual-cased-ner-hrl")
text = st.text_area("Text here")
st.markdown(f'{pipe(text)}')