Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
["
|
| 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 |
-
|
| 121 |
-
Space by: [](https://twitter.com/hahahahohohe)
|
| 122 |
|
| 123 |
-

|
| 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: [](https://twitter.com/ChenHenryWu)
|
|
|
|
| 119 |
|
| 120 |
+

|
| 121 |
''')
|
| 122 |
|
| 123 |
if not is_colab:
|