Spaces:
Runtime error
Runtime error
hsuwill000
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -21,6 +21,12 @@ class CustomOVModelVaeDecoder(OVModelVaeDecoder):
|
|
21 |
|
22 |
"""
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
pipe = OVStableDiffusionPipeline.from_pretrained(
|
26 |
model_id,
|
@@ -55,7 +61,7 @@ def infer(prompt, negative_prompt, num_inference_steps=1):
|
|
55 |
negative_prompt=negative_prompt,
|
56 |
width=WIDTH,
|
57 |
height=HIGH,
|
58 |
-
guidance_scale=
|
59 |
num_inference_steps=num_inference_steps,
|
60 |
num_images_per_prompt=1,
|
61 |
).images[0]
|
@@ -90,7 +96,14 @@ with gr.Blocks(css=css) as demo:
|
|
90 |
run_button = gr.Button("Run", scale=1)
|
91 |
|
92 |
result = gr.Image(label="Result", show_label=False)
|
93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
run_button.click(
|
95 |
fn=infer,
|
96 |
inputs=[prompt],
|
|
|
21 |
|
22 |
"""
|
23 |
|
24 |
+
examples = [
|
25 |
+
"(Digital art, highres, best quality, 8K, masterpiece, anime screencap, perfect eyes:1.4, ultra detailed:1.5),1girl,flat chest,short messy pink hair,blue eyes,tall,thick thighs,light blue hoodie,collar,light blue shirt,black sport shorts,bulge,black thigh highs,femboy,okoto no ko,smiling,blushing,looking at viewer,inside,livingroom,sitting on couch,nighttime,dark,hand_to_mouth,",
|
26 |
+
"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",
|
27 |
+
"masterpiece, best quality, highres booru, 1girl, solo, depth of field, rim lighting, flowers, petals, from above, crystals, butterfly, vegetation, aura, magic, hatsune miku, blush, slight smile, close-up, against wall,",
|
28 |
+
"((colofrul:1.7)),((best quality)), ((masterpiece)), ((ultra-detailed)), (illustration), (detailed light), (an extremely delicate and beautiful),incredibly_absurdres,(glowing),(1girl:1.7),solo,a beautiful girl,(((cowboy shot))),standding,((Hosiery)),((beautiful off-shoulder lace-trimmed layered strapless dress+white stocking):1.25),((Belts)),(leg loops),((Hosiery)),((flower headdress)),((long white hair)),(((beautiful eyes))),BREAK,((english text)),(flower:1.35),(garden),(((border:1.75))),",
|
29 |
+
]
|
30 |
|
31 |
pipe = OVStableDiffusionPipeline.from_pretrained(
|
32 |
model_id,
|
|
|
61 |
negative_prompt=negative_prompt,
|
62 |
width=WIDTH,
|
63 |
height=HIGH,
|
64 |
+
guidance_scale=7.5,
|
65 |
num_inference_steps=num_inference_steps,
|
66 |
num_images_per_prompt=1,
|
67 |
).images[0]
|
|
|
96 |
run_button = gr.Button("Run", scale=1)
|
97 |
|
98 |
result = gr.Image(label="Result", show_label=False)
|
99 |
+
|
100 |
+
gr.Examples(
|
101 |
+
examples = examples,
|
102 |
+
fn = infer,
|
103 |
+
inputs = [prompt],
|
104 |
+
outputs = [result]
|
105 |
+
)
|
106 |
+
|
107 |
run_button.click(
|
108 |
fn=infer,
|
109 |
inputs=[prompt],
|