muhtasham commited on
Commit
c68fa9b
1 Parent(s): 7143a44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -67,7 +67,7 @@ with gr.Blocks() as demo:
67
  with gr.Row():
68
  with gr.Column():
69
  audio_file =[
70
- gr.Audio(source="microphone", type="filepath", optional=True),
71
  gr.Audio(source="upload", type="filepath", optional=True)]
72
  text = gr.Textbox(label="Text", placeholder="If you dont want to record or upload your voice you can input text here")
73
  with gr.Row():
@@ -93,4 +93,4 @@ with gr.Blocks() as demo:
93
  get_image_latent.click(text2image_latent, inputs=[text, steps, width, height, images, diversity], outputs=gallery)
94
  zero_shot_clf.click(zero_shot, inputs=[gallery, text_input], outputs=label)
95
 
96
- demo.launch(live=True)
 
67
  with gr.Row():
68
  with gr.Column():
69
  audio_file =[
70
+ gr.Audio(source="microphone", type="filepath", optional=True, live=True ),
71
  gr.Audio(source="upload", type="filepath", optional=True)]
72
  text = gr.Textbox(label="Text", placeholder="If you dont want to record or upload your voice you can input text here")
73
  with gr.Row():
 
93
  get_image_latent.click(text2image_latent, inputs=[text, steps, width, height, images, diversity], outputs=gallery)
94
  zero_shot_clf.click(zero_shot, inputs=[gallery, text_input], outputs=label)
95
 
96
+ demo.launch()