tldr_keywords / app.py
vanessbut's picture
Начальный коммит.
ebe69e3
raw
history blame
363 Bytes
import streamlit as st
st.markdown("### TL;DR: give me the keywords!")
st.markdown("<img width=200px src='https://rozetked.me/images/uploads/dwoilp3BVjlE.jpg'>", 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)}")