Spaces:
Running
on
Zero
Running
on
Zero
Commit
•
63e43b6
1
Parent(s):
28a1edd
Update app.py
Browse files
app.py
CHANGED
@@ -175,7 +175,7 @@ with gr.Blocks(css=css) as demo:
|
|
175 |
with gr.Group():
|
176 |
neg_prompt = gr.Textbox(label="Negative prompt", placeholder="What to exclude from the image")
|
177 |
disable_auto_prompt_correction = gr.Checkbox(label="Disable auto prompt corretion.")
|
178 |
-
original_model = gr.Checkbox(label="Change the model into the original model.")
|
179 |
with gr.Row():
|
180 |
image_size=gr.Radio(["Portrait","Landscape","Square","Highreso."])
|
181 |
image_size.show_label=False
|
@@ -192,7 +192,7 @@ with gr.Blocks(css=css) as demo:
|
|
192 |
image = gr.Image(label="Image", height=256, tool="editor", type="pil")
|
193 |
strength = gr.Slider(label="Transformation strength", minimum=0, maximum=1, step=0.01, value=0.5)
|
194 |
|
195 |
-
inputs = [prompt, guidance, steps, image_size, seed, image, strength, neg_prompt, disable_auto_prompt_correction
|
196 |
|
197 |
outputs = [image_out, error_output]
|
198 |
prompt.submit(inference, inputs=inputs, outputs=outputs)
|
|
|
175 |
with gr.Group():
|
176 |
neg_prompt = gr.Textbox(label="Negative prompt", placeholder="What to exclude from the image")
|
177 |
disable_auto_prompt_correction = gr.Checkbox(label="Disable auto prompt corretion.")
|
178 |
+
#original_model = gr.Checkbox(label="Change the model into the original model.")
|
179 |
with gr.Row():
|
180 |
image_size=gr.Radio(["Portrait","Landscape","Square","Highreso."])
|
181 |
image_size.show_label=False
|
|
|
192 |
image = gr.Image(label="Image", height=256, tool="editor", type="pil")
|
193 |
strength = gr.Slider(label="Transformation strength", minimum=0, maximum=1, step=0.01, value=0.5)
|
194 |
|
195 |
+
inputs = [prompt, guidance, steps, image_size, seed, image, strength, neg_prompt, disable_auto_prompt_correction]#, original_model]
|
196 |
|
197 |
outputs = [image_out, error_output]
|
198 |
prompt.submit(inference, inputs=inputs, outputs=outputs)
|