import streamlit as st from transformers import AutoModelForTokenClassification, AutoTokenizer, pipeline tokenizer = AutoTokenizer.from_pretrained("Davlan/distilbert-base-multilingual-cased-ner-hrl") model = AutoModelForTokenClassification.from_pretrained("Davlan/distilbert-base-multilingual-cased-ner-hrl") nlp = pipeline("ner", model=model, tokenizer=tokenizer) st.markdown("### Hello there") st.markdown("", unsafe_allow_html=True) text = st.text_area("TEXT HERE") raw_predictions = nlp("is this real?") st.markdown(f"{raw_predictions}")