Spaces:
Running
Running
selfitcamera
commited on
Commit
β’
42cf068
1
Parent(s):
7c4b148
update
Browse files
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))
|