Update app.py
Browse files
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,
|
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:
|