cogniveon commited on
Commit
e45ed49
1 Parent(s): 0f0a6be

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ gr.Interface.from_pipeline(
5
+ pipeline("token-classification", "cogniveon/nlpcw-ner"),
6
+ title="Abbreviation Detection",
7
+ description="Token classication pipeline that detects abbreviations and it's long forms (based on huggingface model: \"romainlhardy/roberta-large-finetuned-ner\")",
8
+ fill_width=True,
9
+ allow_flagging='never',
10
+ examples=[
11
+ "The new SMPL-X model (Skinned Multi Person Linear Model - eXpressive) is based on SMPL and retains the benefits of that model: compatibility with graphics software, simple parametrization, small size, efficient, differentiable, etc."
12
+ ],
13
+ ).launch()