Seed virable in API
#2
by
liemthanh
- opened
I'm trying to use the API with the following statement:
response = requests.post(API_URL, headers=headers, json={
"inputs": request.prompt['prompt'],
"options": {
'wait_for_model': True
},
"parameters": {
"negative_prompt": request.prompt['negative_prompt'],
"width": request.image_size[0],
"height": request.image_size[1],
"guidance_scale": request.guidance_scale,
"num_inference_steps": request.num_inference_steps,
# "seed": random_seed(),
"seed": 1,
}
})
But have error:
"can only concatenate str (not "dict") to str"
The error in the location of the "seed" variable, how can I fix it ??
Help me,
liemthanh
changed discussion status to
closed