crodri commited on
Commit
0ca76da
·
1 Parent(s): 2ad1bab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,3 +1,10 @@
1
  import gradio as gr
2
 
3
- gr.Interface.load("models/projecte-aina/multiner_ceil").launch()
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ #gr.Interface.load("models/projecte-aina/multiner_ceil").launch()
4
+ from transformers import pipeline
5
+ #import gradio as gr
6
+
7
+ pipe = pipeline("token-classification", model="models/projecte-aina/multiner_ceil",aggregation_strategy="first")
8
+
9
+ demo = gr.Interface.from_pipeline(pipe)
10
+ demo.launch()