Commit
·
396c421
1
Parent(s):
923cdcc
up
Browse files
app.py
CHANGED
@@ -234,6 +234,18 @@ def video_generation_handler_streaming(prompt, seed=42, fps=15, width=400, heigh
|
|
234 |
"""
|
235 |
Generator function that yields .ts video chunks using PyAV for streaming.
|
236 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
if seed == -1:
|
238 |
seed = random.randint(0, 2**32 - 1)
|
239 |
|
|
|
234 |
"""
|
235 |
Generator function that yields .ts video chunks using PyAV for streaming.
|
236 |
"""
|
237 |
+
# Add fallback values for None parameters
|
238 |
+
if seed is None:
|
239 |
+
seed = -1
|
240 |
+
if fps is None:
|
241 |
+
fps = 15
|
242 |
+
if width is None:
|
243 |
+
width = 400
|
244 |
+
if height is None:
|
245 |
+
height = 224
|
246 |
+
if duration is None:
|
247 |
+
duration = 5
|
248 |
+
|
249 |
if seed == -1:
|
250 |
seed = random.randint(0, 2**32 - 1)
|
251 |
|