multiner_demo / app.py
crodri's picture
Update app.py
d76e520
raw
history blame
336 Bytes
import gradio as gr
#gr.Interface.load("models/projecte-aina/multiner_ceil",src="models",src="models").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()