Symbiomatrix commited on
Commit
35a8477
·
verified ·
1 Parent(s): d2a82d9

Increase timeout.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=30)
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']: