ChenWu98 commited on
Commit
af0ed3b
β€’
1 Parent(s): 4417b7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -61,7 +61,7 @@ with gr.Blocks(css=css) as demo:
61
  </div>
62
  <p>
63
  Demo for CycleDiffusion with Stable Diffusion. <br>
64
- <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/cycle_diffusion">Pipeline doc</a> | <a href="https://arxiv.org/abs/2210.05559">Paper</a>
65
  </p>
66
  <p>You can skip the queue in the colab: <a href="https://colab.research.google.com/gist/ChenWu98/0aa4fe7be80f6b45d3d055df9f14353a/copy-of-fine-tuned-diffusion-gradio.ipynb"><img data-canonical-src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab" src="https://colab.research.google.com/assets/colab-badge.svg"></a></p>
67
  Running on <b>{device}</b>{(" in a <b>Google Colab</b>." if is_colab else "")}
@@ -112,13 +112,12 @@ with gr.Blocks(css=css) as demo:
112
 
113
  ex = gr.Examples(
114
  [
115
- ["An astronaut riding a horse", "An astronaut riding an elephant", 1, 2, 100, 512, 512, 0, "images/astronaut_horse.png", 0.8],
116
- ["A black colored car.", "A blue colored car.", 1, 2, 100, 512, 512, 0, "images/black_car.png", 0.85],
117
- ["An aerial view of autumn scene.", "An aerial view of winter scene.", 1, 5, 100, 512, 512, 0, "images/mausoleum.png", 0.9],
118
- ["A green apple and a black backpack on the floor.", "A red apple and a black backpack on the floor.", 1, 7, 100, 512, 512, 0, "images/apple_bag.png", 0.9],
119
  ],
120
- [source_prompt, target_prompt, source_guidance_scale, guidance_scale, num_inference_steps,
121
- width, height, seed, img, strength],
122
  image_out, inference, cache_examples=False)
123
 
124
  gr.Markdown('''
 
61
  </div>
62
  <p>
63
  Demo for CycleDiffusion with Stable Diffusion. <br>
64
+ <a href="https://huggingface.co/docs/diffusers/main/en/api/pipelines/cycle_diffusion">🧨 Pipeline doc</a> | <a href="https://arxiv.org/abs/2210.05559">πŸ“„ Paper link</a>
65
  </p>
66
  <p>You can skip the queue in the colab: <a href="https://colab.research.google.com/gist/ChenWu98/0aa4fe7be80f6b45d3d055df9f14353a/copy-of-fine-tuned-diffusion-gradio.ipynb"><img data-canonical-src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab" src="https://colab.research.google.com/assets/colab-badge.svg"></a></p>
67
  Running on <b>{device}</b>{(" in a <b>Google Colab</b>." if is_colab else "")}
 
112
 
113
  ex = gr.Examples(
114
  [
115
+ ["An astronaut riding a horse", "An astronaut riding an elephant", 1, 2, 100, 0, "images/astronaut_horse.png", 0.8],
116
+ ["A black colored car.", "A blue colored car.", 1, 2, 100, 0, "images/black_car.png", 0.85],
117
+ ["An aerial view of autumn scene.", "An aerial view of winter scene.", 1, 5, 100, 0, "images/mausoleum.png", 0.9],
118
+ ["A green apple and a black backpack on the floor.", "A red apple and a black backpack on the floor.", 1, 7, 100, 0, "images/apple_bag.png", 0.9],
119
  ],
120
+ [source_prompt, target_prompt, source_guidance_scale, guidance_scale, num_inference_steps, seed, img, strength],
 
121
  image_out, inference, cache_examples=False)
122
 
123
  gr.Markdown('''