alanchen1115 commited on
Commit
fa010c6
·
verified ·
1 Parent(s): 5eb369d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -88,8 +88,8 @@ def generate_and_upload_image(prompt: str) -> str:
88
  data = {
89
  "prompt": prompt,
90
  "negative_prompt": "Low-quality, blurry image, with any other birds or animals. Avoid abstract or cartoonish styles, dark or gloomy atmosphere, unnecessary objects or distractions in the background, harsh lighting, and unnatural colors.",
91
- "height": 1024,
92
- "width": 1024,
93
  "num_steps": 20, # 步數越高通常細節越多,但也越耗時
94
  "guidance_scale": 5, # 數值越高,圖片越貼近提示詞
95
  "seed": 40 # 固定種子碼可確保相同提示詞生成相同圖片
 
88
  data = {
89
  "prompt": prompt,
90
  "negative_prompt": "Low-quality, blurry image, with any other birds or animals. Avoid abstract or cartoonish styles, dark or gloomy atmosphere, unnecessary objects or distractions in the background, harsh lighting, and unnatural colors.",
91
+ "height": 512,
92
+ "width": 512,
93
  "num_steps": 20, # 步數越高通常細節越多,但也越耗時
94
  "guidance_scale": 5, # 數值越高,圖片越貼近提示詞
95
  "seed": 40 # 固定種子碼可確保相同提示詞生成相同圖片