Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Lihuchen
/
AcroBERT
like
4
Running
App
Files
Files
Community
38de4aa
AcroBERT
/
app.py
Lihuchen
app.py
2305203
over 1 year ago
raw
Copy download link
history
blame
231 Bytes
import
gradio
as
gr
from
acrobert
import
acronym_linker
def
greet
(
sentence
):
results = acronym_linker(sentence, mode=
'acrobert'
)
return
results
iface = gr.Interface(fn=greet, inputs=
"text"
, outputs=
"text"
)
iface.launch()