awacke1 commited on
Commit
39c9462
·
1 Parent(s): 2822e9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -6
app.py CHANGED
@@ -98,16 +98,19 @@ demo = gr.Blocks()
98
  with demo:
99
  audio_file = gr.inputs.Audio(source="microphone", type="filepath")
100
  text = gr.Textbox()
101
- label = gr.Label()
102
- saved = gr.Textbox()
103
- savedAll = gr.Textbox()
104
- TTSchoice = gr.inputs.Radio( label="Pick a TTS Model", choices=MODEL_NAMES, )
105
- audio = gr.Audio(label="Output", interactive=False)
106
-
107
  b1 = gr.Button("Recognize Speech")
 
 
108
  b2 = gr.Button("Classify Sentiment")
 
 
109
  b3 = gr.Button("Save Speech to Text")
 
 
110
  b4 = gr.Button("Retrieve All")
 
 
 
111
  b5 = gr.Button("Read It Back Aloud")
112
 
113
  b1.click(speech_to_text, inputs=audio_file, outputs=text)
 
98
  with demo:
99
  audio_file = gr.inputs.Audio(source="microphone", type="filepath")
100
  text = gr.Textbox()
 
 
 
 
 
 
101
  b1 = gr.Button("Recognize Speech")
102
+
103
+ label = gr.Label()
104
  b2 = gr.Button("Classify Sentiment")
105
+
106
+ saved = gr.Textbox()
107
  b3 = gr.Button("Save Speech to Text")
108
+
109
+ savedAll = gr.Textbox()
110
  b4 = gr.Button("Retrieve All")
111
+
112
+ TTSchoice = gr.inputs.Radio( label="Pick a TTS Model", choices=MODEL_NAMES, )
113
+ audio = gr.Audio(label="Output", interactive=False)
114
  b5 = gr.Button("Read It Back Aloud")
115
 
116
  b1.click(speech_to_text, inputs=audio_file, outputs=text)