Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
66f3168
1
Parent(s):
e7b99fd
Handle result path
Browse files
app.py
CHANGED
@@ -498,8 +498,8 @@ def generate_ai_bg(input_img, prompt):
|
|
498 |
input_fg=handle_file(input_img),
|
499 |
bg_source="None",
|
500 |
prompt=prompt,
|
501 |
-
image_width=
|
502 |
-
image_height=
|
503 |
num_samples=1,
|
504 |
seed=12345,
|
505 |
steps=25,
|
@@ -514,7 +514,7 @@ def generate_ai_bg(input_img, prompt):
|
|
514 |
)
|
515 |
print(result)
|
516 |
|
517 |
-
relight_img_path = result[
|
518 |
|
519 |
response = requests.get(relight_img_path, stream=True)
|
520 |
|
|
|
498 |
input_fg=handle_file(input_img),
|
499 |
bg_source="None",
|
500 |
prompt=prompt,
|
501 |
+
image_width=1024,
|
502 |
+
image_height=1024,
|
503 |
num_samples=1,
|
504 |
seed=12345,
|
505 |
steps=25,
|
|
|
514 |
)
|
515 |
print(result)
|
516 |
|
517 |
+
relight_img_path = result[1]
|
518 |
|
519 |
response = requests.get(relight_img_path, stream=True)
|
520 |
|