ChenWu98 commited on
Commit
5a0d186
1 Parent(s): 4347f54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -104,23 +104,20 @@ with gr.Blocks(css=css) as demo:
104
 
105
  inputs = [source_prompt, target_prompt, source_guidance_scale, guidance_scale, num_inference_steps,
106
  width, height, seed, img, strength]
107
- prompt.submit(inference, inputs=inputs, outputs=image_out)
108
  generate.click(inference, inputs=inputs, outputs=image_out)
109
 
110
  ex = gr.Examples(
111
  [
112
- ["A", "B", 7.5, 50, None], # TODO: load image from a file.
113
- [],
114
  ],
115
  [source_prompt, target_prompt, source_guidance_scale, guidance_scale, num_inference_steps,
116
  width, height, seed, img, strength],
117
  image_out, inference, cache_examples=False)
118
 
119
  gr.Markdown('''
120
- Models by [@nitrosocke](https://huggingface.co/nitrosocke), [@haruu1367](https://twitter.com/haruu1367), [@Helixngc7293](https://twitter.com/DGSpitzer) and others. ❤️<br>
121
- Space by: [![Twitter Follow](https://img.shields.io/twitter/follow/hahahahohohe?label=%40anzorq&style=social)](https://twitter.com/hahahahohohe)
122
 
123
- ![visitors](https://visitor-badge.glitch.me/badge?page_id=anzorq.finetuned_diffusion)
124
  ''')
125
 
126
  if not is_colab:
 
104
 
105
  inputs = [source_prompt, target_prompt, source_guidance_scale, guidance_scale, num_inference_steps,
106
  width, height, seed, img, strength]
 
107
  generate.click(inference, inputs=inputs, outputs=image_out)
108
 
109
  ex = gr.Examples(
110
  [
111
+ ["An astronaut riding a horse", "An astronaut riding an elephant", 1, 2, 100, 512, 512, 0, "images/astronaut_horse.png", 0.8],
 
112
  ],
113
  [source_prompt, target_prompt, source_guidance_scale, guidance_scale, num_inference_steps,
114
  width, height, seed, img, strength],
115
  image_out, inference, cache_examples=False)
116
 
117
  gr.Markdown('''
118
+ Space by: [![Twitter Follow](https://img.shields.io/twitter/follow/ChenHenryWu?style=social)](https://twitter.com/ChenHenryWu)
 
119
 
120
+ ![visitors](https://visitor-badge.glitch.me/badge?page_id=ChenWu98.CycleDiffusion)
121
  ''')
122
 
123
  if not is_colab: