Mon Jul 3 10:06:00 UTC 2023 inscode

上级 029c5f27
export default {
draw (url, config) {
const data = {
prompt: config.prompt,
steps: config?.steps??20,
negative_prompt: config?.negative_prompt??'',
width: config?.width??512,
height: config?.height??512,
cfg_scale: config?.cfg_scale??6,
seed : config?.seed??-1,
sampler_name: config?.sampler_name??"DPM++ SDE Karras"
}
const headers = {
'content-type': 'application/json'
};
axios.post(url, data, { headers }).then(response => {
});
}
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册