P01yH3dr0n commited on
Commit
825d6b5
1 Parent(s): a3bc818

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -101,7 +101,7 @@ def generate_novelai_image(
101
  payload['parameters']['extra_noise_seed'] = seed
102
  # Send the POST request
103
  try:
104
- response = requests.post(url, json=payload, headers=headers)
105
  except:
106
  return None, {'message': 'NAI response timeout'}
107
 
 
101
  payload['parameters']['extra_noise_seed'] = seed
102
  # Send the POST request
103
  try:
104
+ response = requests.post(url, json=payload, headers=headers, timeout=180)
105
  except:
106
  return None, {'message': 'NAI response timeout'}
107