Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ def validate_dimensions(width: int, height: int) -> None:
|
|
79 |
if not MIN_IMAGE_SIZE <= height <= MAX_IMAGE_SIZE:
|
80 |
raise GenerationError(f"Height must be between {MIN_IMAGE_SIZE} and {MAX_IMAGE_SIZE}")
|
81 |
|
82 |
-
@spaces.GPU(duration=
|
83 |
def generate(
|
84 |
prompt: str,
|
85 |
negative_prompt: str = DEFAULT_NEGATIVE_PROMPT,
|
|
|
79 |
if not MIN_IMAGE_SIZE <= height <= MAX_IMAGE_SIZE:
|
80 |
raise GenerationError(f"Height must be between {MIN_IMAGE_SIZE} and {MAX_IMAGE_SIZE}")
|
81 |
|
82 |
+
@spaces.GPU(duration=25)
|
83 |
def generate(
|
84 |
prompt: str,
|
85 |
negative_prompt: str = DEFAULT_NEGATIVE_PROMPT,
|