File size: 768 Bytes
9ae95e2 7afb7d1 9ae95e2 |
1 2 3 4 5 6 7 8 9 |
import gradio as gr
title = "PubMedBERT"
description = "Gradio Demo for PubMedBERT. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
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>"
examples = [
["[MASK] is a tumor suppressor gene."]
]
gr.Interface.load("huggingface/microsoft/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext",title=title,description=description,article=article, examples=examples,enable_queue=True).launch()
|