Spaces:
Build error
Build error
mrolando commited on
Commit ·
77be427
1
Parent(s): db3a844
added examples
Browse files
app.py
CHANGED
|
@@ -48,11 +48,13 @@ with demo:
|
|
| 48 |
text_input4 = gr.Textbox(label="Frase 3")
|
| 49 |
with gr.Row():
|
| 50 |
btn = gr.Button("Calcular")
|
| 51 |
-
|
|
|
|
|
|
|
| 52 |
with gr.Column():
|
| 53 |
with gr.Row():
|
| 54 |
text_output = gr.Label()
|
| 55 |
-
|
| 56 |
btn.click(process_text, [text_input,text_input2, text_input3,text_input4], text_output)
|
| 57 |
|
| 58 |
demo.launch()
|
|
|
|
| 48 |
text_input4 = gr.Textbox(label="Frase 3")
|
| 49 |
with gr.Row():
|
| 50 |
btn = gr.Button("Calcular")
|
| 51 |
+
with gr.Row():
|
| 52 |
+
examples = gr.Examples([["Hola, ¿Cómo estás?","Hola, ¿Todo bien?","Que feo está el día","Yo estoy bien"]],[text_input,text_input2, text_input3,text_input4])
|
| 53 |
+
|
| 54 |
with gr.Column():
|
| 55 |
with gr.Row():
|
| 56 |
text_output = gr.Label()
|
| 57 |
+
|
| 58 |
btn.click(process_text, [text_input,text_input2, text_input3,text_input4], text_output)
|
| 59 |
|
| 60 |
demo.launch()
|