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

resolution

Browse files
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)