Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -250,9 +250,6 @@ def download_and_process_file(url, clean=True):
|
|
250 |
|
251 |
try:
|
252 |
response = get(url)
|
253 |
-
if response.status_code != 200:
|
254 |
-
return f"Error: Received status code {response.status_code} from the server.", 0
|
255 |
-
|
256 |
original_filename = os.path.basename(url)
|
257 |
safe_filename = re.sub(r'[^\w\-_\. ]', '_', original_filename)
|
258 |
temp_filename = f"{safe_filename}"
|
|
|
250 |
|
251 |
try:
|
252 |
response = get(url)
|
|
|
|
|
|
|
253 |
original_filename = os.path.basename(url)
|
254 |
safe_filename = re.sub(r'[^\w\-_\. ]', '_', original_filename)
|
255 |
temp_filename = f"{safe_filename}"
|