Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ if torch.cuda.is_available():
|
|
9 |
pipe = pipe.to("cuda")
|
10 |
|
11 |
def inference(prompt, guidance, steps):
|
12 |
-
prompt = prompt + "
|
13 |
image = pipe(prompt, num_inference_steps=int(steps), guidance_scale=guidance, width=512, height=512).images[0]
|
14 |
return image
|
15 |
|
@@ -48,11 +48,11 @@ with gr.Blocks() as demo:
|
|
48 |
|
49 |
run.click(inference, inputs=[prompt, guidance, steps], outputs=image_out)
|
50 |
gr.Examples([
|
51 |
-
["jason bateman disassembling the demon core
|
52 |
-
["portrait of dwayne johnson
|
53 |
-
["portrait of a beautiful alyx vance half life, volume lighting, concept art, by greg rutkowski!!, colorful, xray melting colors
|
54 |
-
["Aloy from Horizon: Zero Dawn, half body portrait, videogame cover art, highly detailed, digital painting, artstation, concept art, smooth, detailed armor, sharp focus, beautiful face, illustration, art by Artgerm and greg rutkowski and alphonse mucha
|
55 |
-
["fantasy portrait painting, digital art
|
56 |
], [prompt, guidance, steps], image_out, inference, cache_examples=torch.cuda.is_available())
|
57 |
gr.HTML('''
|
58 |
<div>
|
|
|
9 |
pipe = pipe.to("cuda")
|
10 |
|
11 |
def inference(prompt, guidance, steps):
|
12 |
+
prompt = prompt + ", arcane style"
|
13 |
image = pipe(prompt, num_inference_steps=int(steps), guidance_scale=guidance, width=512, height=512).images[0]
|
14 |
return image
|
15 |
|
|
|
48 |
|
49 |
run.click(inference, inputs=[prompt, guidance, steps], outputs=image_out)
|
50 |
gr.Examples([
|
51 |
+
["jason bateman disassembling the demon core", 7.5, 50],
|
52 |
+
["portrait of dwayne johnson", 7.0, 75],
|
53 |
+
["portrait of a beautiful alyx vance half life, volume lighting, concept art, by greg rutkowski!!, colorful, xray melting colors!!", 7, 50],
|
54 |
+
["Aloy from Horizon: Zero Dawn, half body portrait, videogame cover art, highly detailed, digital painting, artstation, concept art, smooth, detailed armor, sharp focus, beautiful face, illustration, art by Artgerm and greg rutkowski and alphonse mucha", 7, 50],
|
55 |
+
["fantasy portrait painting, digital art", 4, 30],
|
56 |
], [prompt, guidance, steps], image_out, inference, cache_examples=torch.cuda.is_available())
|
57 |
gr.HTML('''
|
58 |
<div>
|