Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -97,9 +97,9 @@ with gr.Blocks() as demo:
|
|
| 97 |
cache_examples="lazy"
|
| 98 |
)
|
| 99 |
|
| 100 |
-
def enhance_image(
|
| 101 |
gr.Info("Enhancing Image") # currently just runs optimized pipeline for 2 steps. Further implementations later.
|
| 102 |
-
return next(generate_image(
|
| 103 |
|
| 104 |
enhanceBtn.click(
|
| 105 |
fn=enhance_image,
|
|
|
|
| 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=enhance_image,
|