Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -284,7 +284,6 @@ def generate_image(prompt, structure_image, style_image, depth_strength=15, styl
|
|
| 284 |
images=get_value_at_index(decoded, 0),
|
| 285 |
)
|
| 286 |
saved_path = f"output/{saved['ui']['images'][0]['filename']}"
|
| 287 |
-
print(saved_path)
|
| 288 |
return saved_path
|
| 289 |
|
| 290 |
# Create Gradio interface
|
|
@@ -317,7 +316,8 @@ with gr.Blocks() as app:
|
|
| 317 |
inputs=[prompt_input, structure_image, style_image, depth_strength, style_strength],
|
| 318 |
outputs=[output_image],
|
| 319 |
fn=generate_image,
|
| 320 |
-
cache_examples=True
|
|
|
|
| 321 |
)
|
| 322 |
|
| 323 |
with gr.Column():
|
|
|
|
| 284 |
images=get_value_at_index(decoded, 0),
|
| 285 |
)
|
| 286 |
saved_path = f"output/{saved['ui']['images'][0]['filename']}"
|
|
|
|
| 287 |
return saved_path
|
| 288 |
|
| 289 |
# Create Gradio interface
|
|
|
|
| 316 |
inputs=[prompt_input, structure_image, style_image, depth_strength, style_strength],
|
| 317 |
outputs=[output_image],
|
| 318 |
fn=generate_image,
|
| 319 |
+
cache_examples=True,
|
| 320 |
+
cache_mode="lazy"
|
| 321 |
)
|
| 322 |
|
| 323 |
with gr.Column():
|