sreepathi-ravikumar commited on
Commit
f5aedd4
·
verified ·
1 Parent(s): d25f5c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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"video_{datetime.now().strftime('%Y%m%d_%H%M%S')}.mp4"
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: