ajitrajasekharan's picture
Update app.py
7924378
raw
history blame
942 Bytes
import gradio as gr
title = "Model for Biomedical NER"
description = "Gradio Demo of a pretrained model used for NER without fine-tuning. To test model predictions, simply add your text, or click one of the examples to load them. These predictions are used to perform NER as described in the link below."
article = "<p style='text-align: center'><a href='https://ajitrajasekharan.github.io/2021/01/02/my-first-post.html' target='_blank'>Model pretrained on biomedical corpus and used for NER without fine-tuning</a> | <a href='https://huggingface.co/ajitrajasekharan/biomedical' target='_blank'>HF model page</a></p>"
examples = [
["Lou Gehrig who works for XCorp suffers from [MASK]"],["A [MASK] level below 60 indicates chronic kidney disease"],["Paul Erdos died at [MASK]"]
]
gr.Interface.load("huggingface/ajitrajasekharan/biomedical",title=title,description=description,article=article, examples=examples,enable_queue=True).launch()