ajitrajasekharan commited on
Commit
98f2c32
1 Parent(s): e784b88

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ title = "Biomedical"
3
+ description = "Gradio Demo of a pretrained model used for NER without supervised. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
4
+ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2007.15779' target='_blank'>Domain-Specific Language Model Pretraining for Biomedical Natural Language Processing</a> | <a href='https://huggingface.co/microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext' target='_blank'>HF model page</a></p>"
5
+ examples = [
6
+ ["Lou Gehrig who works for XCorp suffers from [MASK]"]
7
+ ]
8
+ gr.Interface.load("ajitrajasekharan/biomedical,title=title,description=description,article=article, examples=examples,enable_queue=True).launch()