qingxu99 commited on
Commit
986653b
1 Parent(s): 08e184e

resolution

Browse files
Files changed (1) hide show
  1. crazy_functions/图片生成.py +1 -1
crazy_functions/图片生成.py CHANGED
@@ -22,7 +22,7 @@ def gen_image(llm_kwargs, prompt, resolution="256x256"):
22
  data = {
23
  'prompt': prompt,
24
  'n': 1,
25
- 'size': '256x256',
26
  'response_format': 'url'
27
  }
28
  response = requests.post(url, headers=headers, json=data, proxies=proxies)
 
22
  data = {
23
  'prompt': prompt,
24
  'n': 1,
25
+ 'size': resolution,
26
  'response_format': 'url'
27
  }
28
  response = requests.post(url, headers=headers, json=data, proxies=proxies)