Spaces:
Running
on
Zero
Running
on
Zero
Prime Cai
commited on
Commit
·
be5d7c6
1
Parent(s):
4c5bc9e
fix samples
Browse files
app.py
CHANGED
|
@@ -173,9 +173,15 @@ with demo:
|
|
| 173 |
gr.Slider(minimum=1.0, maximum=2.0, step=0.05, value=1.0, label="real guidance scale for prompt (tip: increase if the prompt is not consistent)"),
|
| 174 |
],
|
| 175 |
outputs=gr.Image(type="pil"),
|
| 176 |
-
examples=get_samples(),
|
| 177 |
live=False,
|
| 178 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 179 |
|
| 180 |
if __name__ == "__main__":
|
| 181 |
demo.launch(debug=False, share=True)
|
|
|
|
| 173 |
gr.Slider(minimum=1.0, maximum=2.0, step=0.05, value=1.0, label="real guidance scale for prompt (tip: increase if the prompt is not consistent)"),
|
| 174 |
],
|
| 175 |
outputs=gr.Image(type="pil"),
|
| 176 |
+
# examples=get_samples(),
|
| 177 |
live=False,
|
| 178 |
)
|
| 179 |
+
gr.Examples(
|
| 180 |
+
examples=get_samples(),
|
| 181 |
+
inputs=iface.inputs,
|
| 182 |
+
outputs=iface.outputs,
|
| 183 |
+
run_on_click=False # Prevents auto-submission
|
| 184 |
+
)
|
| 185 |
|
| 186 |
if __name__ == "__main__":
|
| 187 |
demo.launch(debug=False, share=True)
|