Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ LOGGING_CONFIG = {
|
|
36 |
def download_file_with_progress(url: str, filename: str):
|
37 |
"""Download a file with progress bar using requests"""
|
38 |
response = requests.get(url, stream=True)
|
39 |
-
total_size = int(response.headers.get('content-length, 0))
|
40 |
|
41 |
with open(filename, 'wb') as file, tqdm(
|
42 |
desc=filename,
|
|
|
36 |
def download_file_with_progress(url: str, filename: str):
|
37 |
"""Download a file with progress bar using requests"""
|
38 |
response = requests.get(url, stream=True)
|
39 |
+
total_size = int(response.headers.get('content-length', 0))
|
40 |
|
41 |
with open(filename, 'wb') as file, tqdm(
|
42 |
desc=filename,
|