Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
196afc8
1
Parent(s):
a5480b1
Remove commented-out code and add print statement in generate_item_image function
Browse files
app.py
CHANGED
@@ -95,17 +95,8 @@ def generate_item_image(object_t2i_prompt):
|
|
95 |
output_type="pil",
|
96 |
):
|
97 |
yield trial_id, image
|
98 |
-
|
99 |
-
|
100 |
-
# seed=0,
|
101 |
-
# randomize_seed=True,
|
102 |
-
# width=1024,
|
103 |
-
# height=1024,
|
104 |
-
# guidance_scale=3.5,
|
105 |
-
# num_inference_steps=8,
|
106 |
-
# api_name="/infer"
|
107 |
-
# )[0]
|
108 |
-
# image = Image.open(img_path)
|
109 |
trial_id, processed_image = preprocess_pil_image(image)
|
110 |
yield trial_id, processed_image
|
111 |
|
|
|
95 |
output_type="pil",
|
96 |
):
|
97 |
yield trial_id, image
|
98 |
+
print("Yielded image")
|
99 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
trial_id, processed_image = preprocess_pil_image(image)
|
101 |
yield trial_id, processed_image
|
102 |
|