Update gradio GUI
Browse files
app.py
CHANGED
|
@@ -34,5 +34,17 @@ def gen_entities(in_text):
|
|
| 34 |
return response[response.find("entities") : response.find("<EP>")]
|
| 35 |
|
| 36 |
|
| 37 |
-
iface = gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
iface.launch()
|
|
|
|
| 34 |
return response[response.find("entities") : response.find("<EP>")]
|
| 35 |
|
| 36 |
|
| 37 |
+
iface = gr.Interface(
|
| 38 |
+
fn=gen_entities,
|
| 39 |
+
inputs="text",
|
| 40 |
+
outputs="text",
|
| 41 |
+
title="Podcast Named Entity Recognition",
|
| 42 |
+
description="Introduce un texto corto para que el modelo identifique las identidades presentes en el mismo.",
|
| 43 |
+
theme="gradio/monochrome",
|
| 44 |
+
examples=[
|
| 45 |
+
[
|
| 46 |
+
"Yo hoy voy a hablar de mujeres en el mundo del arte, porque me ha leído un libro fantástico que se llama Historia del arte sin hombres, de Katie Hesel."
|
| 47 |
+
]
|
| 48 |
+
],
|
| 49 |
+
)
|
| 50 |
iface.launch()
|