SPACERUNNER99 commited on
Commit
e2aa3d7
·
verified ·
1 Parent(s): 45513cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ def download_video(url):
7
  # Set up headers to mimic a browser request
8
  try:
9
  # Send a GET request to the URL
10
- response = requests.get(url, headers=headers, stream=True)
11
 
12
  # Check if the request was successful (status code 200)
13
  if response.status_code == 200:
 
7
  # Set up headers to mimic a browser request
8
  try:
9
  # Send a GET request to the URL
10
+ response = requests.get(url, stream=True)
11
 
12
  # Check if the request was successful (status code 200)
13
  if response.status_code == 200: