Spaces:
Runtime error
Runtime error
resolution
Browse files- 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':
|
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)
|