BlahBlah314 commited on
Commit
8dba1c5
·
verified ·
1 Parent(s): 5e2ba44

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def greet(name):
4
+ return "Hello " + name + "!!"
5
+
6
+
7
+ def processChain_transcribe(file):
8
+ return file
9
+
10
+ with gr.Blocks() as iface:
11
+ with gr.Tab("App"):
12
+ with gr.Row():
13
+ with gr.Column():
14
+ audio_id = gr.Textbox(label="Audio")
15
+ audio_file = gr.Audio(sources=["upload"], type="numpy")
16
+ submit_btn = gr.Button("Submit", variant="primary")
17
+ with gr.Column():
18
+ raw_transcript = gr.Textbox(label="Transcription")
19
+ submit_btn.click(process_transcribe, inputs=[audio_id], outputs=[raw_transcript])
20
+ iface.launch()