Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -210,4 +210,24 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
210 |
|
211 |
generate_btn.click(
|
212 |
process_and_save_image,
|
213 |
-
inputs=[height, width, steps, scales, prompt, seed],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
210 |
|
211 |
generate_btn.click(
|
212 |
process_and_save_image,
|
213 |
+
inputs=[height, width, steps, scales, prompt, seed],
|
214 |
+
|
215 |
+
|
216 |
+
generate_btn.click(
|
217 |
+
process_and_save_image,
|
218 |
+
inputs=[height, width, steps, scales, prompt, seed],
|
219 |
+
outputs=output
|
220 |
+
)
|
221 |
+
|
222 |
+
randomize_seed.click(
|
223 |
+
update_seed,
|
224 |
+
outputs=[seed]
|
225 |
+
)
|
226 |
+
|
227 |
+
generate_btn.click(
|
228 |
+
update_seed,
|
229 |
+
outputs=[seed]
|
230 |
+
)
|
231 |
+
|
232 |
+
if __name__ == "__main__":
|
233 |
+
demo.launch(allowed_paths=[PERSISTENT_DIR])
|