fffiloni commited on
Commit
13cd12c
1 Parent(s): 08228f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,8 +52,8 @@ 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, 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]).queue(max_size=1000).launch(enable_queue=True)
 
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)