Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -325,10 +325,7 @@ def infer_relight(
|
|
| 325 |
|
| 326 |
if len(pil_images) == 0:
|
| 327 |
raise gr.Error("Please upload an image first.")
|
| 328 |
-
|
| 329 |
-
if height != 0 and width != 0:
|
| 330 |
-
pil_images[0] = pil_images[0].resize((width, height), Image.LANCZOS)
|
| 331 |
-
|
| 332 |
result = pipe(
|
| 333 |
image=pil_images,
|
| 334 |
prompt=final_prompt,
|
|
@@ -379,7 +376,7 @@ css = '''
|
|
| 379 |
'''
|
| 380 |
|
| 381 |
def reset_all():
|
| 382 |
-
return ["none", "", "none", "", "none", "", "none", "", "", False
|
| 383 |
|
| 384 |
def end_reset():
|
| 385 |
return False
|
|
|
|
| 325 |
|
| 326 |
if len(pil_images) == 0:
|
| 327 |
raise gr.Error("Please upload an image first.")
|
| 328 |
+
|
|
|
|
|
|
|
|
|
|
| 329 |
result = pipe(
|
| 330 |
image=pil_images,
|
| 331 |
prompt=final_prompt,
|
|
|
|
| 376 |
'''
|
| 377 |
|
| 378 |
def reset_all():
|
| 379 |
+
return ["none", "", "none", "", "none", "", "none", "", "", False]
|
| 380 |
|
| 381 |
def end_reset():
|
| 382 |
return False
|