File size: 325 Bytes
143ab03
4008bad
143ab03
83301e6
 
 
 
 
143ab03
 
 
83301e6
 
143ab03
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import streamlit as st
from transformers import pipeline

from span_marker import SpanMarkerModel

# Download from the 🤗 Hub
model = SpanMarkerModel.from_pretrained("tomaarsen/span-marker-bert-base-acronyms")
# Run inference
text = st.text_area('enter some text:')

if text:
    out = model.predict(text)

    st.json(out)