Update app.py
Browse files
app.py
CHANGED
|
@@ -39,13 +39,6 @@ def infer(prompt, negative_prompt, num_inference_steps=8):
|
|
| 39 |
|
| 40 |
return image
|
| 41 |
|
| 42 |
-
examples = [
|
| 43 |
-
"(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,",
|
| 44 |
-
"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",
|
| 45 |
-
"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,",
|
| 46 |
-
"((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))),",
|
| 47 |
-
]
|
| 48 |
-
|
| 49 |
css = """
|
| 50 |
#col-container {
|
| 51 |
margin: 0 auto;
|
|
@@ -75,13 +68,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 75 |
|
| 76 |
result = gr.Image(label="Result", show_label=False)
|
| 77 |
|
| 78 |
-
gr.Examples(
|
| 79 |
-
examples=examples,
|
| 80 |
-
fn=infer,
|
| 81 |
-
inputs=[prompt],
|
| 82 |
-
outputs=[result]
|
| 83 |
-
)
|
| 84 |
-
|
| 85 |
run_button.click(
|
| 86 |
fn=infer,
|
| 87 |
inputs=[prompt],
|
|
@@ -89,4 +75,3 @@ with gr.Blocks(css=css) as demo:
|
|
| 89 |
)
|
| 90 |
|
| 91 |
demo.queue().launch()
|
| 92 |
-
|
|
|
|
| 39 |
|
| 40 |
return image
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
css = """
|
| 43 |
#col-container {
|
| 44 |
margin: 0 auto;
|
|
|
|
| 68 |
|
| 69 |
result = gr.Image(label="Result", show_label=False)
|
| 70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
run_button.click(
|
| 72 |
fn=infer,
|
| 73 |
inputs=[prompt],
|
|
|
|
| 75 |
)
|
| 76 |
|
| 77 |
demo.queue().launch()
|
|
|