Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,12 +97,8 @@ with gr.Blocks() as demo:
|
|
| 97 |
cache_examples="lazy"
|
| 98 |
)
|
| 99 |
|
| 100 |
-
def enhance_image(prompt, current_seed, width, height):
|
| 101 |
-
gr.Info("Enhancing Image") # currently just runs optimized pipeline for 2 steps. Further implementations later.
|
| 102 |
-
return next(generate_image(prompt, current_seed, width, height))
|
| 103 |
-
|
| 104 |
enhanceBtn.click(
|
| 105 |
-
fn=
|
| 106 |
inputs=[prompt, seed, width, height],
|
| 107 |
outputs=[result, seed, latency],
|
| 108 |
show_progress="full",
|
|
|
|
| 97 |
cache_examples="lazy"
|
| 98 |
)
|
| 99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
enhanceBtn.click(
|
| 101 |
+
fn=generate_image,
|
| 102 |
inputs=[prompt, seed, width, height],
|
| 103 |
outputs=[result, seed, latency],
|
| 104 |
show_progress="full",
|