KeniBrandonGM's picture
segunda correcion
21c3307
raw
history blame
No virus
729 Bytes
demo = gr.Blocks()
with demo:
gr.Markdown("Este es el segundo demo con Blocks")
with gr.Tabs():
with gr.TabItem("Transcribe audio en español"):
with gr.Row():
audio = gr.Audio(source="microphone", type="filepath")
transcripcion = gr.Textbox()
b1 = gr.Button("Transcribe porfa")
with gr.TabItem("Análisis de sentimiento en español"):
with gr.Row():
texto = gr.Textbox()
label = gr.Label()
b2 = gr.Button("sentimiento porfa")
b1.click(audio_a_text, inputs = audio, outputs = transcripcion)
b2.click(texto_a_sentimiento, inputs = texto, outputs = label)
#b3.click(clasifica_imagen, inputs = imagen, outputs=label1)
demo.launch()