Increase timeout.
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ def get_files_by_username(username, api_key=None, nsfw=None, hidden=None):
|
|
111 |
headers['Authorization'] = f'Bearer {api_key}'
|
112 |
|
113 |
while url:
|
114 |
-
response = requests.get(url, headers=headers, timeout=
|
115 |
data = response.json()
|
116 |
# Add current page items to the list
|
117 |
for model in data['items']:
|
|
|
111 |
headers['Authorization'] = f'Bearer {api_key}'
|
112 |
|
113 |
while url:
|
114 |
+
response = requests.get(url, headers=headers, timeout=180)
|
115 |
data = response.json()
|
116 |
# Add current page items to the list
|
117 |
for model in data['items']:
|