Update app.py
Browse files
app.py
CHANGED
@@ -87,10 +87,11 @@ def generate_video():
|
|
87 |
id=0
|
88 |
try:
|
89 |
# Send list + int to subspace
|
|
|
90 |
res = requests.post(SUBSPACE_URL, json={"lines": lines, "id": id})
|
91 |
if res.status_code == 200:
|
92 |
video_content = res.content
|
93 |
-
filename = f"
|
94 |
filepath = os.path.join(SAVE_DIR, filename)
|
95 |
|
96 |
with open(filepath, "wb") as f:
|
|
|
87 |
id=0
|
88 |
try:
|
89 |
# Send list + int to subspace
|
90 |
+
|
91 |
res = requests.post(SUBSPACE_URL, json={"lines": lines, "id": id})
|
92 |
if res.status_code == 200:
|
93 |
video_content = res.content
|
94 |
+
filename = f"clip{id}.mp4"
|
95 |
filepath = os.path.join(SAVE_DIR, filename)
|
96 |
|
97 |
with open(filepath, "wb") as f:
|