Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -131,8 +131,8 @@ with gr.Blocks(css=css) as demo:
|
|
131 |
prompt = gr.Textbox(label="Prompt", placeholder="{} is added automatically".format(prompt_prefixes[current_model]), elem_id="input-prompt")
|
132 |
guidance = gr.Slider(label="Guidance scale", value=7, maximum=8)
|
133 |
steps = gr.Slider(label="Steps", value=20, maximum=30, minimum=2)
|
134 |
-
width_input = gr.Slider(label="Width", value=
|
135 |
-
height_input = gr.Slider(label="Height", value=
|
136 |
run = gr.Button(value="Run")
|
137 |
gr.Markdown(f"Running on: {device}")
|
138 |
with gr.Column():
|
@@ -150,11 +150,12 @@ with gr.Blocks(css=css) as demo:
|
|
150 |
share_button.click(None, [], [], _js=share_js)
|
151 |
|
152 |
gr.Examples([
|
153 |
-
["portrait of a beautiful fancy gorgeous anime girl, intricate details", 7, 20,
|
|
|
154 |
["a beautiful perfect face girl, Anime fine details portrait of school girl in front of modern tokyo city landscape on the background deep bokeh, anime masterpiece by studio ghibli, 8k, sharp high quality anime, artstation", 7, 20, 704, 704],
|
155 |
["city landscape with fancy car, racing on the road, gopro, intricate details, 4k, cyberpunk", 7, 20, 704, 704],
|
156 |
["portrait of liu yifei girl, soldier working in a cyberpunk city, cleavage, intricate, 8k, highly detailed, digital painting, intense, sharp focus", 7, 20, 704, 704],
|
157 |
-
["portrait of a muscular beard male in dgs illustration style, half-body, holding robot arms, strong chest", 7, 20,
|
158 |
], [prompt, guidance, steps, width_input, height_input], image_out, inference_example, cache_examples=torch.cuda.is_available())
|
159 |
gr.Markdown('''
|
160 |
Models and Space by [@DGSpitzer](https://www.youtube.com/channel/UCzzsYBF4qwtMwJaPJZ5SuPg)❤️ [@大谷的游戏创作小屋](https://space.bilibili.com/176003)
|
|
|
131 |
prompt = gr.Textbox(label="Prompt", placeholder="{} is added automatically".format(prompt_prefixes[current_model]), elem_id="input-prompt")
|
132 |
guidance = gr.Slider(label="Guidance scale", value=7, maximum=8)
|
133 |
steps = gr.Slider(label="Steps", value=20, maximum=30, minimum=2)
|
134 |
+
width_input = gr.Slider(label="Width", value=576, maximum=768, minimum=384, step=64)
|
135 |
+
height_input = gr.Slider(label="Height", value=576, maximum=768, minimum=384, step=64)
|
136 |
run = gr.Button(value="Run")
|
137 |
gr.Markdown(f"Running on: {device}")
|
138 |
with gr.Column():
|
|
|
150 |
share_button.click(None, [], [], _js=share_js)
|
151 |
|
152 |
gr.Examples([
|
153 |
+
["portrait of a beautiful fancy gorgeous anime girl, intricate details", 7, 20, 448, 640],
|
154 |
+
["perfect face portrait of beautiful smile girl, clean face, wears hoody, half body, soldier working in a cyberpunk city, cleavage, intricate, 8k, highly detailed, digital painting, intense, sharp focus", 7, 20, 512, 704],
|
155 |
["a beautiful perfect face girl, Anime fine details portrait of school girl in front of modern tokyo city landscape on the background deep bokeh, anime masterpiece by studio ghibli, 8k, sharp high quality anime, artstation", 7, 20, 704, 704],
|
156 |
["city landscape with fancy car, racing on the road, gopro, intricate details, 4k, cyberpunk", 7, 20, 704, 704],
|
157 |
["portrait of liu yifei girl, soldier working in a cyberpunk city, cleavage, intricate, 8k, highly detailed, digital painting, intense, sharp focus", 7, 20, 704, 704],
|
158 |
+
["portrait of a muscular beard male in dgs illustration style, half-body, holding robot arms, strong chest", 7, 20, 512, 640],
|
159 |
], [prompt, guidance, steps, width_input, height_input], image_out, inference_example, cache_examples=torch.cuda.is_available())
|
160 |
gr.Markdown('''
|
161 |
Models and Space by [@DGSpitzer](https://www.youtube.com/channel/UCzzsYBF4qwtMwJaPJZ5SuPg)❤️ [@大谷的游戏创作小屋](https://space.bilibili.com/176003)
|