Spaces:
Running
on
Zero
Running
on
Zero
Alexander Bagus
commited on
Commit
·
ecf9177
1
Parent(s):
9e610dd
22
Browse files
app.py
CHANGED
|
@@ -134,6 +134,7 @@ def inference(
|
|
| 134 |
|
| 135 |
image = pipe(
|
| 136 |
prompt=prompt,
|
|
|
|
| 137 |
height=height,
|
| 138 |
width=width,
|
| 139 |
generator=generator,
|
|
@@ -175,7 +176,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 175 |
# elem_id="image_upload",
|
| 176 |
type="pil", label="Upload")
|
| 177 |
|
| 178 |
-
is_polish_prompt = gr.Checkbox(label="Polish prompt", value=True)
|
| 179 |
prompt = gr.Textbox(
|
| 180 |
label="Prompt",
|
| 181 |
# show_label=False,
|
|
@@ -183,7 +183,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 183 |
placeholder="Enter your prompt",
|
| 184 |
# container=False,
|
| 185 |
)
|
| 186 |
-
|
| 187 |
control_mode = gr.Radio(
|
| 188 |
choices=["Canny", "Depth", "HED", "MLSD", "Pose"],
|
| 189 |
value="HED",
|
|
@@ -221,7 +221,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 221 |
label="Control context scale",
|
| 222 |
minimum=0.0,
|
| 223 |
maximum=1.0,
|
| 224 |
-
step=0.
|
| 225 |
value=0.75,
|
| 226 |
)
|
| 227 |
|
|
@@ -231,7 +231,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 231 |
minimum=0.0,
|
| 232 |
maximum=10.0,
|
| 233 |
step=0.1,
|
| 234 |
-
value=
|
| 235 |
)
|
| 236 |
|
| 237 |
num_inference_steps = gr.Slider(
|
|
|
|
| 134 |
|
| 135 |
image = pipe(
|
| 136 |
prompt=prompt,
|
| 137 |
+
negative_prompt = "blurry ugly bad",
|
| 138 |
height=height,
|
| 139 |
width=width,
|
| 140 |
generator=generator,
|
|
|
|
| 176 |
# elem_id="image_upload",
|
| 177 |
type="pil", label="Upload")
|
| 178 |
|
|
|
|
| 179 |
prompt = gr.Textbox(
|
| 180 |
label="Prompt",
|
| 181 |
# show_label=False,
|
|
|
|
| 183 |
placeholder="Enter your prompt",
|
| 184 |
# container=False,
|
| 185 |
)
|
| 186 |
+
is_polish_prompt = gr.Checkbox(label="Polish prompt", value=True)
|
| 187 |
control_mode = gr.Radio(
|
| 188 |
choices=["Canny", "Depth", "HED", "MLSD", "Pose"],
|
| 189 |
value="HED",
|
|
|
|
| 221 |
label="Control context scale",
|
| 222 |
minimum=0.0,
|
| 223 |
maximum=1.0,
|
| 224 |
+
step=0.01,
|
| 225 |
value=0.75,
|
| 226 |
)
|
| 227 |
|
|
|
|
| 231 |
minimum=0.0,
|
| 232 |
maximum=10.0,
|
| 233 |
step=0.1,
|
| 234 |
+
value=1.0,
|
| 235 |
)
|
| 236 |
|
| 237 |
num_inference_steps = gr.Slider(
|