Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -174,7 +174,7 @@ def generate_input_image(image_path,input_choice):
|
|
| 174 |
return conditioning_image
|
| 175 |
|
| 176 |
@spaces.GPU
|
| 177 |
-
def generate_output_image(prompt,input_choice):
|
| 178 |
#---------------------
|
| 179 |
if input_choice == "Edge image":
|
| 180 |
pipe = pipe_edge
|
|
@@ -270,7 +270,7 @@ with gr.Blocks() as demo:
|
|
| 270 |
)
|
| 271 |
generate_btn.click(
|
| 272 |
fn=generate_output_image,
|
| 273 |
-
inputs=[prompt_input,image_dropdown],
|
| 274 |
outputs=[output_image]
|
| 275 |
)
|
| 276 |
|
|
|
|
| 174 |
return conditioning_image
|
| 175 |
|
| 176 |
@spaces.GPU
|
| 177 |
+
def generate_output_image(prompt,conditioning_image,input_choice):
|
| 178 |
#---------------------
|
| 179 |
if input_choice == "Edge image":
|
| 180 |
pipe = pipe_edge
|
|
|
|
| 270 |
)
|
| 271 |
generate_btn.click(
|
| 272 |
fn=generate_output_image,
|
| 273 |
+
inputs=[prompt_input,input_preview,image_dropdown],
|
| 274 |
outputs=[output_image]
|
| 275 |
)
|
| 276 |
|