Spaces:
Runtime error
Runtime error
Update app.py
Browse filesmodificacion del main
app.py
CHANGED
@@ -69,31 +69,23 @@ def main():
|
|
69 |
|
70 |
with gr.TabbedInterface(
|
71 |
[
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
],
|
89 |
-
label="Traducci贸n (Ingl茅s a Espa帽ol)"
|
90 |
-
),
|
91 |
-
]
|
92 |
-
):
|
93 |
boton_clasificar.click(fn=clasificar_noticia, inputs=[input_texto_clasificacion, modelo_seleccion], outputs=output_clasificacion)
|
94 |
boton_traducir.click(fn=traducir_texto_en_es, inputs=[input_texto_traduccion], outputs=output_traduccion)
|
95 |
|
96 |
-
demo.launch()
|
97 |
-
|
98 |
-
if __name__ == "__main__":
|
99 |
-
main()
|
|
|
69 |
|
70 |
with gr.TabbedInterface(
|
71 |
[
|
72 |
+
[
|
73 |
+
gr.Markdown("## Clasificaci贸n de Noticias"),
|
74 |
+
input_texto_clasificacion,
|
75 |
+
modelo_seleccion,
|
76 |
+
boton_clasificar,
|
77 |
+
output_clasificacion,
|
78 |
+
],
|
79 |
+
[
|
80 |
+
gr.Markdown("## Traducci贸n de Ingl茅s a Espa帽ol"),
|
81 |
+
input_texto_traduccion,
|
82 |
+
boton_traducir,
|
83 |
+
output_traduccion,
|
84 |
+
],
|
85 |
+
],
|
86 |
+
["Clasificaci贸n de Noticias", "Traducci贸n (Ingl茅s a Espa帽ol)"]
|
87 |
+
) as tabs:
|
|
|
|
|
|
|
|
|
|
|
88 |
boton_clasificar.click(fn=clasificar_noticia, inputs=[input_texto_clasificacion, modelo_seleccion], outputs=output_clasificacion)
|
89 |
boton_traducir.click(fn=traducir_texto_en_es, inputs=[input_texto_traduccion], outputs=output_traduccion)
|
90 |
|
91 |
+
demo.launch()
|
|
|
|
|
|