Spaces:
Runtime error
Runtime error
Iwaku-Real
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -113,8 +113,8 @@ with gr.Blocks(css=css) as demo:
|
|
113 |
with gr.Tab("txt2img"):
|
114 |
with gr.Row():
|
115 |
with gr.Column(scale=6, min_width=600):
|
116 |
-
prompt = gr.Textbox("
|
117 |
-
negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, value="
|
118 |
with gr.Column():
|
119 |
text_button = gr.Button("Generate", variant='primary', elem_id="generate")
|
120 |
|
@@ -126,19 +126,19 @@ with gr.Blocks(css=css) as demo:
|
|
126 |
sampler = gr.Dropdown(value="DPM++ 2M Karras", show_label=True, label="Sampling Method", choices=prodia_client.list_samplers())
|
127 |
|
128 |
with gr.Column(scale=1):
|
129 |
-
steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=
|
130 |
|
131 |
with gr.Row():
|
132 |
with gr.Column(scale=1):
|
133 |
-
width = gr.Slider(label="Width", minimum=
|
134 |
-
height = gr.Slider(label="Height", minimum=
|
135 |
-
gr.Markdown(elem_id="resolution", value="
|
136 |
|
137 |
with gr.Column(scale=1):
|
138 |
batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
|
139 |
batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
|
140 |
|
141 |
-
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=1)
|
142 |
seed = gr.Number(label="Seed", value=-1)
|
143 |
|
144 |
|
|
|
113 |
with gr.Tab("txt2img"):
|
114 |
with gr.Row():
|
115 |
with gr.Column(scale=6, min_width=600):
|
116 |
+
prompt = gr.Textbox("", placeholder="Prompt", show_label=False, lines=3)
|
117 |
+
negative_prompt = gr.Textbox(placeholder="Negative Prompt", show_label=False, lines=3, value="")
|
118 |
with gr.Column():
|
119 |
text_button = gr.Button("Generate", variant='primary', elem_id="generate")
|
120 |
|
|
|
126 |
sampler = gr.Dropdown(value="DPM++ 2M Karras", show_label=True, label="Sampling Method", choices=prodia_client.list_samplers())
|
127 |
|
128 |
with gr.Column(scale=1):
|
129 |
+
steps = gr.Slider(label="Sampling Steps", minimum=1, maximum=50, value=50, step=1)
|
130 |
|
131 |
with gr.Row():
|
132 |
with gr.Column(scale=1):
|
133 |
+
width = gr.Slider(label="Width", minimum=256, maximum=4296, value=1024, step=1)
|
134 |
+
height = gr.Slider(label="Height", minimum=256, maximum=4296, value=1024, step=1)
|
135 |
+
gr.Markdown(elem_id="resolution", value="***Max Resolution: 1.1MP (1,100,000px)*")
|
136 |
|
137 |
with gr.Column(scale=1):
|
138 |
batch_size = gr.Slider(label="Batch Size", maximum=1, value=1)
|
139 |
batch_count = gr.Slider(label="Batch Count", maximum=1, value=1)
|
140 |
|
141 |
+
cfg_scale = gr.Slider(label="CFG Scale", minimum=1, maximum=20, value=7, step=0.1)
|
142 |
seed = gr.Number(label="Seed", value=-1)
|
143 |
|
144 |
|