multiner_demo / app.py
PaulNdrei's picture
Add theme
e25282d
raw
history blame
403 Bytes
import gradio as gr
from AinaTheme import AinaGradioTheme
gr.load("projecte-aina/multiner_ceil",src="models",aggregation_strategy="first", **AinaGradioTheme().get_kwargs()).launch()
#from transformers import pipeline
#import gradio as gr
#pipe = pipeline("token-classification", model="projecte-aina/multiner_ceil",aggregation_strategy="first")
#demo = gr.Interface.from_pipeline(pipe)
#demo.launch()