jbilcke-hf HF Staff commited on
Commit
e223df2
·
verified ·
1 Parent(s): f4a9a58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 not 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)
 
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)