Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
|
|
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()
|