File size: 706 Bytes
c94207c
 
155403c
c94207c
58b184c
ebe6eb3
35cddc0
82ffe66
 
1
2
3
4
5
6
7
8
9
import gradio as gr

examples = [["El útero o matriz es el lugar donde se desarrolla el bebé cuando una mujer está embarazada."], ["El síndrome de dolor regional complejo es un trastorno de dolor crónico."]]

theme="grass"
title="Spanish Medical NER Demo"
description="A Spanish Medical NER Demo to label medical text with these labels: 'Concept', 'Action', 'Predicate' or 'Reference'. Many improvements to do, feedback welcome!!"
inputs=gr.inputs.Textbox(label="Introduce o elige un ejemplo de texto médico")
gr.Interface.load("huggingface/fmmolina/bert-base-spanish-wwm-uncased-finetuned-NER-medical", inputs = inputs, theme=theme, examples=examples, title=title, description=description).launch();