Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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":
|
| 92 |
-
"width":
|
| 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 # 固定種子碼可確保相同提示詞生成相同圖片
|