multiner_demo / app.py
crodri's picture
Update app.py
0ca76da
raw
history blame
310 Bytes
import gradio as gr
#gr.Interface.load("models/projecte-aina/multiner_ceil").launch()
from transformers import pipeline
#import gradio as gr
pipe = pipeline("token-classification", model="models/projecte-aina/multiner_ceil",aggregation_strategy="first")
demo = gr.Interface.from_pipeline(pipe)
demo.launch()