File size: 1,095 Bytes
fd46a6b
2305203
fd46a6b
2305203
 
3cb1abf
2305203
fd46a6b
f3f272c
 
31e5249
c5a8fb0
f3f272c
886c25e
f3f272c
810b253
f3f272c
 
a407e7f
fd46a6b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import gradio as gr
from acrobert import acronym_linker


def greet(sentence):
    results = acronym_linker(sentence, mode='acrobert')
    return results


sample_list = [
    "The LDA is an example of a topic model.",
    "Using a camera sensor, LDA judges the position of your vehicle in relation to the road markings below.",
    "AI is a wide-ranging branch of computer science concerned with building smart machines capable of performing tasks that typically require human intelligence. ",
    "In the United States, the AI for potassium for adults is 4.7 grams.",
    "This new genome assembly and the annotation are tagged as a RefSeq genome by NCBI and thus provide substantially enhanced genomic resources for future research involving S. scovelli.",
    "In this study, we found that miR-34a demonstrated greater expression in the lungs of patients with IPF and in mice with experimental pulmonary fibrosis , with its primary localization in lung fibroblasts.",
]

iface = gr.Interface(fn=greet, inputs="text", outputs="text", examples=sample_list, cache_examples=False)
iface.launch()