Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def generate_video(prompt, height, width,
|
|
124 |
raise gr.Error("Please enter a text prompt. Try to use long and precise descriptions.")
|
125 |
|
126 |
# Apply limits based on environment variable
|
127 |
-
if
|
128 |
height = min(height, LIMITED_MAX_RESOLUTION)
|
129 |
width = min(width, LIMITED_MAX_RESOLUTION)
|
130 |
duration_seconds = min(duration_seconds, LIMITED_MAX_DURATION)
|
|
|
124 |
raise gr.Error("Please enter a text prompt. Try to use long and precise descriptions.")
|
125 |
|
126 |
# Apply limits based on environment variable
|
127 |
+
if IS_ORIGINAL_SPACE:
|
128 |
height = min(height, LIMITED_MAX_RESOLUTION)
|
129 |
width = min(width, LIMITED_MAX_RESOLUTION)
|
130 |
duration_seconds = min(duration_seconds, LIMITED_MAX_DURATION)
|