Mei000 commited on
Commit
85374d0
1 Parent(s): e3a8693

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -9
app.py CHANGED
@@ -20,19 +20,13 @@ def populate_metadata(link):
20
 
21
  with gr.Blocks() as demo:
22
 
23
- gr.Markdown("Whisper-Small Cantonese Recognition")
24
  with gr.Row():
25
  with gr.TabItem("Record from Microphone"):
26
  record_file = gr.Audio(source="microphone", type="filepath",label="Record from microphone")
27
  record_button = gr.Button("Submit")
28
- record_outputs = [gr.Textbox(label="Recognized result from Microphone"),]
29
- """with gr.Row():
30
- with gr.TabItem("Transcribe from youtube URL"):
31
- url = gr.Text(max_lines=1, label="Transcribe from youtube URL")
32
- youtube_button = gr.Button("Submit")
33
- youtube_outputs = [
34
- gr.Textbox(label="Recognized speech from youtube URL")
35
- ] """
36
  with gr.Row().style(equal_height=True):
37
  link = gr.Textbox(label="YouTube Link")
38
  title = gr.Label(label="Video Title")
 
20
 
21
  with gr.Blocks() as demo:
22
 
23
+ gr.Markdown("Whisper Small Swedish")
24
  with gr.Row():
25
  with gr.TabItem("Record from Microphone"):
26
  record_file = gr.Audio(source="microphone", type="filepath",label="Record from microphone")
27
  record_button = gr.Button("Submit")
28
+ record_outputs = [gr.Textbox(label="Transcription from Microphone"),]
29
+
 
 
 
 
 
 
30
  with gr.Row().style(equal_height=True):
31
  link = gr.Textbox(label="YouTube Link")
32
  title = gr.Label(label="Video Title")