Update app.py
Browse files
app.py
CHANGED
@@ -110,8 +110,7 @@ with gr.Blocks(css=css) as demo:
|
|
110 |
<h1 style="color:orange;">📷 Realistic Vision V5.0 📸</h1>
|
111 |
</div>
|
112 |
<p>
|
113 |
-
|
114 |
-
Stable Diffusion model by <a href="https://huggingface.co/SG161222/"><abbr title="SG1611222">Eugene</abbr></a>. {"" if prefix else ""}
|
115 |
Running on {"<b>GPU 🔥</b>" if torch.cuda.is_available() else f"<b>CPU ⚡</b>"}.
|
116 |
</p>
|
117 |
<p>Please use the prompt template below to get an example of the desired generation results:
|
@@ -151,7 +150,7 @@ Have Fun & Enjoy ⚡ <a href="https://ko-fi.com/flatindostudio"><abbr title="Web
|
|
151 |
prompt = gr.Textbox(label="Prompt", show_label=False,max_lines=2,placeholder=f"{prefix} [your prompt]").style(container=False)
|
152 |
generate = gr.Button(value="Generate").style(rounded=(False, True, True, False))
|
153 |
|
154 |
-
image_out = gr.Image(
|
155 |
error_output = gr.Markdown()
|
156 |
|
157 |
with gr.Column(scale=45):
|
@@ -161,8 +160,8 @@ Have Fun & Enjoy ⚡ <a href="https://ko-fi.com/flatindostudio"><abbr title="Web
|
|
161 |
auto_prefix = gr.Checkbox(label="Prefix styling tokens automatically (RAW photo,)", value=prefix, visible=prefix)
|
162 |
|
163 |
with gr.Row():
|
164 |
-
guidance = gr.Slider(label="Guidance scale", value=
|
165 |
-
steps = gr.Slider(label="Steps", value=
|
166 |
|
167 |
with gr.Row():
|
168 |
width = gr.Slider(label="Width", value=1024, minimum=64, maximum=1024, step=8)
|
|
|
110 |
<h1 style="color:orange;">📷 Realistic Vision V5.0 📸</h1>
|
111 |
</div>
|
112 |
<p>
|
113 |
+
{"" if prefix else ""}
|
|
|
114 |
Running on {"<b>GPU 🔥</b>" if torch.cuda.is_available() else f"<b>CPU ⚡</b>"}.
|
115 |
</p>
|
116 |
<p>Please use the prompt template below to get an example of the desired generation results:
|
|
|
150 |
prompt = gr.Textbox(label="Prompt", show_label=False,max_lines=2,placeholder=f"{prefix} [your prompt]").style(container=False)
|
151 |
generate = gr.Button(value="Generate").style(rounded=(False, True, True, False))
|
152 |
|
153 |
+
image_out = gr.Image(width=1024)
|
154 |
error_output = gr.Markdown()
|
155 |
|
156 |
with gr.Column(scale=45):
|
|
|
160 |
auto_prefix = gr.Checkbox(label="Prefix styling tokens automatically (RAW photo,)", value=prefix, visible=prefix)
|
161 |
|
162 |
with gr.Row():
|
163 |
+
guidance = gr.Slider(label="Guidance scale", value=7, maximum=15)
|
164 |
+
steps = gr.Slider(label="Steps", value=40, minimum=2, maximum=75, step=1)
|
165 |
|
166 |
with gr.Row():
|
167 |
width = gr.Slider(label="Width", value=1024, minimum=64, maximum=1024, step=8)
|