muhtasham commited on
Commit
7c7a0de
1 Parent(s): 626fbaf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,7 +55,7 @@ with gr.Blocks() as demo:
55
  gr.Audio(source="microphone", type="filepath")]
56
  text = gr.Textbox(label="Text", placeholder="If you dont want to record or upload your voice you can input text here")
57
  with gr.Row():
58
- speech_to_text = gr.Button("Speech to text go brrr")
59
  with gr.Column():
60
  steps = gr.inputs.Slider(label="Steps - more steps can increase quality but will take longer to generate",default=1,maximum=50,minimum=1,step=1)
61
  width = gr.inputs.Slider(label="Width", default=256, step=32, maximum=256, minimum=32)
@@ -66,7 +66,7 @@ with gr.Blocks() as demo:
66
  with gr.Row():
67
  get_image_latent = gr.Button("Generate Image go brr")
68
 
69
- speech_to_text.click(speech_to_text, inputs=audio_file, outputs=text)
70
  get_image_latent.click(text2image_latent, inputs=[text, steps, width, height, images, diversity], outputs=gallery)
71
 
72
  demo.launch(enable_queue=True, debug=True)
 
55
  gr.Audio(source="microphone", type="filepath")]
56
  text = gr.Textbox(label="Text", placeholder="If you dont want to record or upload your voice you can input text here")
57
  with gr.Row():
58
+ s2t = gr.Button("Speech to text go brrr")
59
  with gr.Column():
60
  steps = gr.inputs.Slider(label="Steps - more steps can increase quality but will take longer to generate",default=1,maximum=50,minimum=1,step=1)
61
  width = gr.inputs.Slider(label="Width", default=256, step=32, maximum=256, minimum=32)
 
66
  with gr.Row():
67
  get_image_latent = gr.Button("Generate Image go brr")
68
 
69
+ s2t.click(speech_to_text, inputs=audio_file, outputs=text)
70
  get_image_latent.click(text2image_latent, inputs=[text, steps, width, height, images, diversity], outputs=gallery)
71
 
72
  demo.launch(enable_queue=True, debug=True)