Update app.py
Browse files
app.py
CHANGED
@@ -50,10 +50,17 @@ gallery = gr.Gallery(label="Generated images", show_label=False, elem_id="galler
|
|
50 |
title="Whisper to Stable Diffusion"
|
51 |
description="""
|
52 |
<p style='text-align: center;'>
|
53 |
-
This demo is running on CPU. Build by Sylvain <a href='https://twitter.com/fffiloni' target='_blank'>@fffiloni</a> • <img id='visitor-badge' alt='visitor badge' src='https://visitor-badge.glitch.me/badge?page_id=gradio-blocks.sd-img-variations' style='display: inline-block' />
|
54 |
-
Record an audio description of an image, stop recording, then hit the Submit button to get 2 images from Stable Diffusion
|
55 |
Your audio will be translated to English through OpenAI's Whisper, then sent as a prompt to Stable Diffusion.
|
56 |
Try it in French ! ;)
|
57 |
</p>
|
58 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
gr.Interface(fn=get_images, inputs=audio, outputs=[translated_prompt, gallery], title=title, description=description).queue(max_size=1000).launch(enable_queue=True)
|
|
|
50 |
title="Whisper to Stable Diffusion"
|
51 |
description="""
|
52 |
<p style='text-align: center;'>
|
53 |
+
This demo is running on CPU. Build by Sylvain <a href='https://twitter.com/fffiloni' target='_blank'>@fffiloni</a> • <img id='visitor-badge' alt='visitor badge' src='https://visitor-badge.glitch.me/badge?page_id=gradio-blocks.sd-img-variations' style='display: inline-block' /><br />
|
54 |
+
Record an audio description of an image, stop recording, then hit the Submit button to get 2 images from Stable Diffusion.<br />
|
55 |
Your audio will be translated to English through OpenAI's Whisper, then sent as a prompt to Stable Diffusion.
|
56 |
Try it in French ! ;)
|
57 |
</p>
|
58 |
"""
|
59 |
+
|
60 |
+
article="""
|
61 |
+
<p style='text-align: center;'>
|
62 |
+
Whisper is a general-purpose speech recognition model. It is trained on a large dataset of diverse audio and is also a multi-task model that can perform multilingual speech recognition as well as speech translation and language identification.<br />
|
63 |
+
Model by <a href="https://github.com/openai/whisper" style="text-decoration: underline;" target="_blank">OpenAI</a>
|
64 |
+
</p>
|
65 |
+
"""
|
66 |
gr.Interface(fn=get_images, inputs=audio, outputs=[translated_prompt, gallery], title=title, description=description).queue(max_size=1000).launch(enable_queue=True)
|