emirhanbilgic commited on
Commit
6f30bf0
1 Parent(s): ddfe670

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -161,7 +161,7 @@ def generate_image(face_image_1, face_image_2, additional_prompt, gender):
161
  generated_images = generate_images(faceid_embeds)
162
  return generated_images[0]
163
 
164
- # Gradio Interface
165
  gr_interface = gr.Interface(
166
  fn=generate_image,
167
  inputs=[
@@ -172,6 +172,9 @@ gr_interface = gr.Interface(
172
  ],
173
  outputs=gr.Image(label="Generated Image"),
174
  title="Face Morphing and Image Generation with Stable Diffusion",
 
 
 
175
  )
176
 
177
  gr_interface.launch(share=True)
 
161
  generated_images = generate_images(faceid_embeds)
162
  return generated_images[0]
163
 
164
+ # Gradio Interface with Examples
165
  gr_interface = gr.Interface(
166
  fn=generate_image,
167
  inputs=[
 
172
  ],
173
  outputs=gr.Image(label="Generated Image"),
174
  title="Face Morphing and Image Generation with Stable Diffusion",
175
+ examples=[
176
+ ["yann-lecun.jpg", "isabell-guyon.jpg", "playing chess", "Boy"]
177
+ ]
178
  )
179
 
180
  gr_interface.launch(share=True)