Create app.py
Browse files
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()
|