Spaces:
Runtime error
Runtime error
Commit
·
1c5bdb4
1
Parent(s):
e631c22
fixes #2, added examples
Browse files
app.py
CHANGED
@@ -78,6 +78,18 @@ def create_demo():
|
|
78 |
gr.Markdown('---')
|
79 |
gr.Markdown('# Learn More About Diffusion 💡')
|
80 |
gr.Markdown('Check out my open-source ⏩[DiffusionFastForward](https://github.com/mikonvergence/DiffusionFastForward) course. It contains example code, executable notebooks, videos, notes, and a few use cases for training from scratch!')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
send_button.click(fn=forward, inputs=[image_cam, image_upload, prompt, n_prompt, num_steps, seed, original_resolution], outputs=[output_image])
|
83 |
return demo
|
|
|
78 |
gr.Markdown('---')
|
79 |
gr.Markdown('# Learn More About Diffusion 💡')
|
80 |
gr.Markdown('Check out my open-source ⏩[DiffusionFastForward](https://github.com/mikonvergence/DiffusionFastForward) course. It contains example code, executable notebooks, videos, notes, and a few use cases for training from scratch!')
|
81 |
+
|
82 |
+
image_href="https://www.looper.com/img/gallery/the-most-pause-worthy-moments-in-the-original-star-trek-series/kirk-and-spock-fight-1644017931.jpg"
|
83 |
+
examples = [[image_href, "Astronauts inside the ISS Station"],
|
84 |
+
[image_href, "Elves from Middle-Earth"],
|
85 |
+
[image_href, "Jedi Duel"],
|
86 |
+
[image_href, "Wizard Duel in New Harry Potter Movie"]
|
87 |
+
]
|
88 |
+
ex_element = gr.Examples(examples,
|
89 |
+
inputs = [image_upload, prompt],
|
90 |
+
fn=forward,
|
91 |
+
outputs=[output_image]
|
92 |
+
)
|
93 |
|
94 |
send_button.click(fn=forward, inputs=[image_cam, image_upload, prompt, n_prompt, num_steps, seed, original_resolution], outputs=[output_image])
|
95 |
return demo
|