Spaces:
Runtime error
Runtime error
fix
Browse files
app.py
CHANGED
|
@@ -140,10 +140,10 @@ def predict(
|
|
| 140 |
)
|
| 141 |
print(f"Time taken: {time.time() - last_time}")
|
| 142 |
return (
|
| 143 |
-
images.images[0],
|
| 144 |
# (padded_image, images.images[0]),
|
| 145 |
padded_image,
|
| 146 |
anyline_image,
|
|
|
|
| 147 |
)
|
| 148 |
|
| 149 |
|
|
@@ -274,7 +274,7 @@ SDXL Controlnet [TheMistoAI/MistoLine](https://huggingface.co/TheMistoAI/MistoLi
|
|
| 274 |
intensity_threshold,
|
| 275 |
]
|
| 276 |
outputs = [padded_image, anyline_image, output_image]
|
| 277 |
-
btn.click(lambda x: None, inputs=None, outputs=
|
| 278 |
fn=predict, inputs=inputs, outputs=outputs
|
| 279 |
)
|
| 280 |
gr.Examples(
|
|
|
|
| 140 |
)
|
| 141 |
print(f"Time taken: {time.time() - last_time}")
|
| 142 |
return (
|
|
|
|
| 143 |
# (padded_image, images.images[0]),
|
| 144 |
padded_image,
|
| 145 |
anyline_image,
|
| 146 |
+
images.images[0],
|
| 147 |
)
|
| 148 |
|
| 149 |
|
|
|
|
| 274 |
intensity_threshold,
|
| 275 |
]
|
| 276 |
outputs = [padded_image, anyline_image, output_image]
|
| 277 |
+
btn.click(lambda x: None, inputs=None, outputs=outputs).then(
|
| 278 |
fn=predict, inputs=inputs, outputs=outputs
|
| 279 |
)
|
| 280 |
gr.Examples(
|