Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,4 +76,15 @@ with gr.Blocks() as demo:
|
|
| 76 |
# we link the button to the function and display the output
|
| 77 |
generate_button.click(generate_image, inputs=[seed, num_ar_steps, class_labels, cfg_scale, cfg_schedule], outputs=image_output)
|
| 78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
demo.launch()
|
|
|
|
| 76 |
# we link the button to the function and display the output
|
| 77 |
generate_button.click(generate_image, inputs=[seed, num_ar_steps, class_labels, cfg_scale, cfg_schedule], outputs=image_output)
|
| 78 |
|
| 79 |
+
# Add example inputs and cache them for quicker demos
|
| 80 |
+
gr.Interface(
|
| 81 |
+
generate_image,
|
| 82 |
+
inputs=[seed, num_ar_steps, class_labels, cfg_scale, cfg_schedule],
|
| 83 |
+
outputs=image_output,
|
| 84 |
+
examples=[
|
| 85 |
+
[0, 64, "207, 360, 388, 113, 355, 980, 323, 979", 4, "constant"],
|
| 86 |
+
],
|
| 87 |
+
cache_examples=True
|
| 88 |
+
)
|
| 89 |
+
|
| 90 |
demo.launch()
|