File size: 1,153 Bytes
fd46a6b
2305203
fd46a6b
2305203
 
 
 
fd46a6b
f3f272c
 
 
 
 
 
 
 
 
 
 
a407e7f
fd46a6b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import gradio as gr
from acrobert import acronym_linker


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


sample_list = [
    "AI is a wide-ranging branch of computer science concerned with building smart machines capable of performing tasks that typically require human intelligence. ",
    """A whistleblower like monologist Mike Daisey gets targeted as a scapegoat who must
    be discredited and diminished in the public eyes. More often than not, PR is
    a preemptive process. Celebrity publicists are paid lots of money to keep certain
    stories out of the news.""",
    "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()