Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ from optimum.intel.openvino import OVStableDiffusionPipeline
|
|
5 |
model_id = "HelloSun/chilloutmix_NiPrunedFp32Fix-openvino"
|
6 |
|
7 |
# 確保這些是有效的尺寸
|
8 |
-
HIGH =
|
9 |
-
WIDTH =
|
10 |
|
11 |
pipe = OVStableDiffusionPipeline.from_pretrained(model_id)
|
12 |
|
@@ -25,7 +25,7 @@ def infer(prompt, negative_prompt):
|
|
25 |
return image
|
26 |
|
27 |
examples = [
|
28 |
-
"
|
29 |
"1girl, silver hair, symbol-shaped pupils, yellow eyes, smiling, light particles, light rays, wallpaper, star guardian, serious face, red inner hair, power aura, grandmaster1, golden and white clothes",
|
30 |
"A cute kitten, Tinkle style.",
|
31 |
"(illustration, 8k CG, extremely detailed),(whimsical),catgirl,teenage girl,playing in the snow,winter wonderland,snow-covered trees,soft pastel colors,gentle lighting,sparkling snow,joyful,magical atmosphere,highly detailed,fluffy cat ears and tail,intricate winter clothing,shallow depth of field,watercolor techniques,close-up shot,slightly tilted angle,fairy tale architecture,nostalgic,playful,winter magic,(masterpiece:2),best quality,ultra highres,original,extremely detailed,perfect lighting,",
|
@@ -43,7 +43,7 @@ power_device = "CPU"
|
|
43 |
with gr.Blocks(css=css) as demo:
|
44 |
with gr.Column(elem_id="col-container"):
|
45 |
gr.Markdown(f"""
|
46 |
-
#
|
47 |
Currently running on {power_device}.
|
48 |
""")
|
49 |
|
|
|
5 |
model_id = "HelloSun/chilloutmix_NiPrunedFp32Fix-openvino"
|
6 |
|
7 |
# 確保這些是有效的尺寸
|
8 |
+
HIGH = 1024
|
9 |
+
WIDTH = 1024
|
10 |
|
11 |
pipe = OVStableDiffusionPipeline.from_pretrained(model_id)
|
12 |
|
|
|
25 |
return image
|
26 |
|
27 |
examples = [
|
28 |
+
"1girl,hakurei reimu,bird,flower,hair tubes,solo,bow,hair bow,bird on head,brown hair,long hair,looking at viewer,animal on head,branch,on head,red bow,purple eyes,lips,",
|
29 |
"1girl, silver hair, symbol-shaped pupils, yellow eyes, smiling, light particles, light rays, wallpaper, star guardian, serious face, red inner hair, power aura, grandmaster1, golden and white clothes",
|
30 |
"A cute kitten, Tinkle style.",
|
31 |
"(illustration, 8k CG, extremely detailed),(whimsical),catgirl,teenage girl,playing in the snow,winter wonderland,snow-covered trees,soft pastel colors,gentle lighting,sparkling snow,joyful,magical atmosphere,highly detailed,fluffy cat ears and tail,intricate winter clothing,shallow depth of field,watercolor techniques,close-up shot,slightly tilted angle,fairy tale architecture,nostalgic,playful,winter magic,(masterpiece:2),best quality,ultra highres,original,extremely detailed,perfect lighting,",
|
|
|
43 |
with gr.Blocks(css=css) as demo:
|
44 |
with gr.Column(elem_id="col-container"):
|
45 |
gr.Markdown(f"""
|
46 |
+
# chilloutmix_NiPrunedFp32Fix-openvino {HIGH}x{WIDTH}
|
47 |
Currently running on {power_device}.
|
48 |
""")
|
49 |
|