Spaces:
Running
Running
Commit
·
2038bb1
1
Parent(s):
30aaad8
Update main.py
Browse files
main.py
CHANGED
@@ -31,7 +31,7 @@ def latlon_to_pixel(loc):
|
|
31 |
def proxy(url):
|
32 |
print('URL:',url)
|
33 |
try:
|
34 |
-
req = requests.get(f'http://{url}', stream=True, timeout=
|
35 |
return Response(req.iter_content(chunk_size=10*1024), content_type=req.headers['content-type'])
|
36 |
except requests.exceptions.RequestException as e:
|
37 |
print('error.')
|
|
|
31 |
def proxy(url):
|
32 |
print('URL:',url)
|
33 |
try:
|
34 |
+
req = requests.get(f'http://{url}', stream=True, timeout=15)
|
35 |
return Response(req.iter_content(chunk_size=10*1024), content_type=req.headers['content-type'])
|
36 |
except requests.exceptions.RequestException as e:
|
37 |
print('error.')
|