testdeep123 commited on
Commit
a097516
·
verified ·
1 Parent(s): 372c71b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -301,7 +301,7 @@ def download_video(video_url, filename):
301
  response.raise_for_status()
302
  with open(filename, 'wb') as f:
303
  for chunk in response.iter_content(chunk_size=8192):
304
- f.writechunk)
305
  print(f"Video downloaded successfully to: {filename}")
306
  return filename
307
  except Exception as e:
 
301
  response.raise_for_status()
302
  with open(filename, 'wb') as f:
303
  for chunk in response.iter_content(chunk_size=8192):
304
+ f.write(chunk)
305
  print(f"Video downloaded successfully to: {filename}")
306
  return filename
307
  except Exception as e: