sergiolucero commited on
Commit
71cdb69
1 Parent(s): 6d89794

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -2
app.py CHANGED
@@ -8,12 +8,28 @@ def transcribe(audiofile):
8
  return whisper_transcribe(audiofile)
9
 
10
 
11
- gr.Label("Demo CORFO")
12
- demo = gr.Interface(
 
 
13
  transcribe,
14
  gr.Audio(sources=["microphone"], type="filepath"),
15
  "text",
16
  )
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  demo.launch()
19
 
 
8
  return whisper_transcribe(audiofile)
9
 
10
 
11
+ # gr.title("Demo CORFO")
12
+
13
+
14
+ audemo = gr.Interface(
15
  transcribe,
16
  gr.Audio(sources=["microphone"], type="filepath"),
17
  "text",
18
  )
19
 
20
+ with gr.Blocks() as demo:
21
+ audemo
22
+ with gr.Row():
23
+ with gr.Column(scale=1):
24
+ radio = gr.Radio(choices=["Option 1", "Option 2"], label="Select an option", value="Option 1", interactive=True)
25
+ with gr.Column(scale=3):
26
+ with gr.Row():
27
+ left_text = gr.Markdown()
28
+ right_text = gr.Markdown()
29
+
30
+ radio.change(display_text, inputs=radio, outputs=[left_text, right_text])
31
+
32
+
33
+
34
  demo.launch()
35