Update app.py
Browse files
app.py
CHANGED
|
@@ -338,13 +338,6 @@ with gr.Blocks(theme=gr.themes.Origin()) as demo:
|
|
| 338 |
step=1,
|
| 339 |
value=150, # Replace with defaults that work for your model
|
| 340 |
)
|
| 341 |
-
save_button = gr.Button("Save Image")
|
| 342 |
-
image_path_output = gr.Text(visible=False) # Hidden component to store the path
|
| 343 |
-
save_button.click(
|
| 344 |
-
fn=lambda image_path: None, # No-op function, the path is already available
|
| 345 |
-
inputs=[image_path_output],
|
| 346 |
-
outputs=None,
|
| 347 |
-
)
|
| 348 |
gr.Examples(examples=examples, inputs=[prompt])
|
| 349 |
gr.on(
|
| 350 |
triggers=[run_button.click, prompt.submit],
|
|
@@ -360,7 +353,7 @@ with gr.Blocks(theme=gr.themes.Origin()) as demo:
|
|
| 360 |
num_inference_steps,
|
| 361 |
latent_file, # Add latent_file to the inputs
|
| 362 |
],
|
| 363 |
-
outputs=[result, seed,
|
| 364 |
)
|
| 365 |
|
| 366 |
if __name__ == "__main__":
|
|
|
|
| 338 |
step=1,
|
| 339 |
value=150, # Replace with defaults that work for your model
|
| 340 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 341 |
gr.Examples(examples=examples, inputs=[prompt])
|
| 342 |
gr.on(
|
| 343 |
triggers=[run_button.click, prompt.submit],
|
|
|
|
| 353 |
num_inference_steps,
|
| 354 |
latent_file, # Add latent_file to the inputs
|
| 355 |
],
|
| 356 |
+
outputs=[result, seed, expanded_prompt_output],
|
| 357 |
)
|
| 358 |
|
| 359 |
if __name__ == "__main__":
|