|
import gradio as gr |
|
|
|
def greet(name): |
|
return "Hello " + name + "!!" |
|
|
|
|
|
def processChain_transcribe(file): |
|
return file |
|
|
|
with gr.Blocks() as iface: |
|
with gr.Tab("App"): |
|
with gr.Row(): |
|
with gr.Column(): |
|
audio_id = gr.Textbox(label="Audio") |
|
audio_file = gr.Audio(sources=["upload"], type="numpy") |
|
submit_btn = gr.Button("Submit", variant="primary") |
|
with gr.Column(): |
|
raw_transcript = gr.Textbox(label="Transcription") |
|
submit_btn.click(process_transcribe, inputs=[audio_id], outputs=[raw_transcript]) |
|
iface.launch() |