Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import torch
|
|
4 |
from PIL import Image
|
5 |
|
6 |
model_id = 'SG161222/Realistic_Vision_V4.0'
|
7 |
-
prefix = 'photo,'
|
8 |
|
9 |
scheduler = DPMSolverMultistepScheduler.from_pretrained(model_id, subfolder="scheduler")
|
10 |
|
@@ -107,7 +107,7 @@ with gr.Blocks(css=css) as demo:
|
|
107 |
f"""
|
108 |
<div class="main-div">
|
109 |
<div>
|
110 |
-
<h1 style="color:orange;">📷 Realistic Vision
|
111 |
</div>
|
112 |
<p>
|
113 |
Demo for <a href="https://huggingface.co/SG161222/Realistic_Vision_V4.0">Realistic Vision V4.0</a>
|
@@ -162,8 +162,8 @@ Have Fun & Enjoy ⚡ <a href="https://www.thafx.com"><abbr title="Website">//THA
|
|
162 |
auto_prefix = gr.Checkbox(label="Prefix styling tokens automatically (RAW photo,)", value=prefix, visible=prefix)
|
163 |
|
164 |
with gr.Row():
|
165 |
-
guidance = gr.Slider(label="Guidance scale", value=
|
166 |
-
steps = gr.Slider(label="Steps", value=
|
167 |
|
168 |
with gr.Row():
|
169 |
width = gr.Slider(label="Width", value=512, minimum=64, maximum=1024, step=8)
|
|
|
4 |
from PIL import Image
|
5 |
|
6 |
model_id = 'SG161222/Realistic_Vision_V4.0'
|
7 |
+
prefix = 'RAW photo,'
|
8 |
|
9 |
scheduler = DPMSolverMultistepScheduler.from_pretrained(model_id, subfolder="scheduler")
|
10 |
|
|
|
107 |
f"""
|
108 |
<div class="main-div">
|
109 |
<div>
|
110 |
+
<h1 style="color:orange;">📷 Realistic Vision V4.0 📸</h1>
|
111 |
</div>
|
112 |
<p>
|
113 |
Demo for <a href="https://huggingface.co/SG161222/Realistic_Vision_V4.0">Realistic Vision V4.0</a>
|
|
|
162 |
auto_prefix = gr.Checkbox(label="Prefix styling tokens automatically (RAW photo,)", value=prefix, visible=prefix)
|
163 |
|
164 |
with gr.Row():
|
165 |
+
guidance = gr.Slider(label="Guidance scale", value=5, maximum=15)
|
166 |
+
steps = gr.Slider(label="Steps", value=20, minimum=2, maximum=75, step=1)
|
167 |
|
168 |
with gr.Row():
|
169 |
width = gr.Slider(label="Width", value=512, minimum=64, maximum=1024, step=8)
|