Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -82,7 +82,7 @@ def preprocess_pil_image(image: Image.Image) -> Tuple[str, Image.Image]:
|
|
| 82 |
processed_image.save(f"{TMP_DIR}/{trial_id}.png")
|
| 83 |
return trial_id, processed_image
|
| 84 |
|
| 85 |
-
@spaces.GPU(duration=
|
| 86 |
def generate_item_image(object_t2i_prompt):
|
| 87 |
trial_id = ""
|
| 88 |
for image in pipe.flux_pipe_call_that_returns_an_iterable_of_images(
|
|
|
|
| 82 |
processed_image.save(f"{TMP_DIR}/{trial_id}.png")
|
| 83 |
return trial_id, processed_image
|
| 84 |
|
| 85 |
+
@spaces.GPU(duration=90)
|
| 86 |
def generate_item_image(object_t2i_prompt):
|
| 87 |
trial_id = ""
|
| 88 |
for image in pipe.flux_pipe_call_that_returns_an_iterable_of_images(
|