Spaces:
Runtime error
Runtime error
Commit 路
420e951
1
Parent(s): a80deed
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,19 +10,19 @@ with demo:
|
|
| 10 |
with gr.Row():
|
| 11 |
audio = gr.Audio(source="microphone", type="filepath")
|
| 12 |
transcripcion = gr.Textbox()
|
| 13 |
-
b1 = gr.Button("
|
| 14 |
|
| 15 |
with gr.TabItem("An谩lisis de sentimiento en espa帽ol"):
|
| 16 |
with gr.Row():
|
| 17 |
texto = gr.Textbox()
|
| 18 |
label = gr.Label()
|
| 19 |
-
b2 = gr.Button("
|
| 20 |
|
| 21 |
with gr.TabItem("Clasificaci贸n de imagen"):
|
| 22 |
with gr.Row():
|
| 23 |
image = gr.Image(shape=(224,224))
|
| 24 |
label2 = gr.Label(num_top_classes=3)
|
| 25 |
-
b3 = gr.Button("
|
| 26 |
|
| 27 |
b1.click(audio_a_text, inputs = audio, outputs=transcripcion)
|
| 28 |
b2.click(texto_a_sentimiento, inputs=texto, outputs=label)
|
|
|
|
| 10 |
with gr.Row():
|
| 11 |
audio = gr.Audio(source="microphone", type="filepath")
|
| 12 |
transcripcion = gr.Textbox()
|
| 13 |
+
b1 = gr.Button("Transcribir")
|
| 14 |
|
| 15 |
with gr.TabItem("An谩lisis de sentimiento en espa帽ol"):
|
| 16 |
with gr.Row():
|
| 17 |
texto = gr.Textbox()
|
| 18 |
label = gr.Label()
|
| 19 |
+
b2 = gr.Button("Clasificar sentimiento")
|
| 20 |
|
| 21 |
with gr.TabItem("Clasificaci贸n de imagen"):
|
| 22 |
with gr.Row():
|
| 23 |
image = gr.Image(shape=(224,224))
|
| 24 |
label2 = gr.Label(num_top_classes=3)
|
| 25 |
+
b3 = gr.Button("Clasificar imagen")
|
| 26 |
|
| 27 |
b1.click(audio_a_text, inputs = audio, outputs=transcripcion)
|
| 28 |
b2.click(texto_a_sentimiento, inputs=texto, outputs=label)
|