sergiolucero commited on
Commit
3313eeb
1 Parent(s): 7624a50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -12
app.py CHANGED
@@ -10,13 +10,6 @@ def transcribe(audiofile):
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
  def display_text(option):
21
  left = 'LEFT:' + option
22
  right = 'RIGHT:' + option
@@ -24,7 +17,13 @@ def display_text(option):
24
  return left, right
25
 
26
  with gr.Blocks() as demo:
27
- audemo
 
 
 
 
 
 
28
  with gr.Row():
29
  with gr.Column(scale=1):
30
  radio = gr.Radio(choices=["Option 1", "Option 2"], label="Select an option", value="Option 1", interactive=True)
@@ -35,7 +34,4 @@ with gr.Blocks() as demo:
35
 
36
  radio.change(display_text, inputs=radio, outputs=[left_text, right_text])
37
 
38
-
39
-
40
- demo.launch()
41
-
 
10
 
11
  # gr.title("Demo CORFO")
12
 
 
 
 
 
 
 
 
13
  def display_text(option):
14
  left = 'LEFT:' + option
15
  right = 'RIGHT:' + option
 
17
  return left, right
18
 
19
  with gr.Blocks() as demo:
20
+ with gr.Row():
21
+
22
+ audemo = gr.Interface(
23
+ transcribe,
24
+ gr.Audio(sources=["microphone"], type="filepath"),
25
+ "text",
26
+ )
27
  with gr.Row():
28
  with gr.Column(scale=1):
29
  radio = gr.Radio(choices=["Option 1", "Option 2"], label="Select an option", value="Option 1", interactive=True)
 
34
 
35
  radio.change(display_text, inputs=radio, outputs=[left_text, right_text])
36
 
37
+ demo.launch()