Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,6 +27,7 @@ io2 = gr.Interface.load("huggingface/facebook/bart-large-cnn")
|
|
| 27 |
# io3 = gr.Interface.load("huggingface/csebuetnlp/mT5_multilingual_XLSum")
|
| 28 |
# io4 = gr.Interface.load("huggingface/google/pegasus-xsum")
|
| 29 |
|
|
|
|
| 30 |
# Crear la interfaz combinada usando Blocks
|
| 31 |
with gr.Blocks() as demo:
|
| 32 |
gr.Markdown(f"# {title}")
|
|
@@ -34,12 +35,17 @@ with gr.Blocks() as demo:
|
|
| 34 |
|
| 35 |
with gr.Row():
|
| 36 |
# Crear las interfaces y agregarlas al layout
|
| 37 |
-
io1 = gr.Interface.load("huggingface/crrodrvi/mbart-simplificacion")
|
| 38 |
-
io2 = gr.Interface.load("huggingface/facebook/bart-large-cnn")
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
gr.Examples(examples, inputs=gr.Textbox(lines=10, label="Text"))
|
| 43 |
|
| 44 |
# Lanzar la aplicaci贸n
|
| 45 |
-
demo.launch(share=True)
|
|
|
|
| 27 |
# io3 = gr.Interface.load("huggingface/csebuetnlp/mT5_multilingual_XLSum")
|
| 28 |
# io4 = gr.Interface.load("huggingface/google/pegasus-xsum")
|
| 29 |
|
| 30 |
+
|
| 31 |
# Crear la interfaz combinada usando Blocks
|
| 32 |
with gr.Blocks() as demo:
|
| 33 |
gr.Markdown(f"# {title}")
|
|
|
|
| 35 |
|
| 36 |
with gr.Row():
|
| 37 |
# Crear las interfaces y agregarlas al layout
|
| 38 |
+
io1 = gr.Interface.load("huggingface/crrodrvi/mbart-simplificacion", inputs="textbox", outputs="textbox")
|
| 39 |
+
io2 = gr.Interface.load("huggingface/facebook/bart-large-cnn", inputs="textbox", outputs="textbox")
|
| 40 |
+
|
| 41 |
+
# Crear columnas para cada interfaz
|
| 42 |
+
with gr.Column():
|
| 43 |
+
io1.render()
|
| 44 |
+
|
| 45 |
+
with gr.Column():
|
| 46 |
+
io2.render()
|
| 47 |
+
|
| 48 |
gr.Examples(examples, inputs=gr.Textbox(lines=10, label="Text"))
|
| 49 |
|
| 50 |
# Lanzar la aplicaci贸n
|
| 51 |
+
demo.launch(share=True)
|