selfitcamera commited on
Commit
42cf068
β€’
1 Parent(s): 7c4b148
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -104,7 +104,7 @@ def publicFastSwap(apiUrl, openId, apiKey, infId, category, caption, denoise_ste
104
  elif category=="full_body":
105
  category = 4
106
  params = {'openId':OpenId, 'apiKey':ApiKey, 'infId':infId,
107
- 'denoise_steps':denoise_steps, 'auto_mask':1, 'auto_crop':1,
108
  'category':category, 'caption':caption}
109
  session = requests.session()
110
  ret = requests.post(f"{ApiUrl}/api/inf/public_fastinf", data=json.dumps(params))
 
104
  elif category=="full_body":
105
  category = 4
106
  params = {'openId':OpenId, 'apiKey':ApiKey, 'infId':infId,
107
+ 'denoise_steps':int(denoise_steps), 'auto_mask':1, 'auto_crop':1,
108
  'category':category, 'caption':caption}
109
  session = requests.session()
110
  ret = requests.post(f"{ApiUrl}/api/inf/public_fastinf", data=json.dumps(params))