Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -208,26 +208,21 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 208 |
def update_seed():
|
| 209 |
return get_random_seed()
|
| 210 |
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
|
|
|
|
|
|
| 214 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 215 |
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 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])
|
|
|
|
| 208 |
def update_seed():
|
| 209 |
return get_random_seed()
|
| 210 |
|
| 211 |
+
generate_btn.click(
|
| 212 |
+
process_and_save_image,
|
| 213 |
+
inputs=[height, width, steps, scales, prompt, seed],
|
| 214 |
+
outputs=output
|
| 215 |
+
)
|
| 216 |
|
| 217 |
+
randomize_seed.click(
|
| 218 |
+
update_seed,
|
| 219 |
+
outputs=[seed]
|
| 220 |
+
)
|
| 221 |
|
| 222 |
+
generate_btn.click(
|
| 223 |
+
update_seed,
|
| 224 |
+
outputs=[seed]
|
| 225 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 226 |
|
| 227 |
if __name__ == "__main__":
|
| 228 |
+
demo.launch(allowed_paths=[PERSISTENT_DIR])
|