Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -100,7 +100,7 @@ with image_blocks as demo:
|
|
100 |
''')
|
101 |
with gr.Row():
|
102 |
with gr.Column():
|
103 |
-
image = gr.Image(
|
104 |
# image = gr.Image(sources=None, type="pil") # None for upload, ctrl+v and webcam
|
105 |
|
106 |
|
@@ -121,7 +121,7 @@ with image_blocks as demo:
|
|
121 |
steps = gr.Number(value=30, minimum=10, maximum=100, step=1, label="steps")
|
122 |
seed = gr.Number(value=0, minimum=0, maximum=100000, step=1, label="seed")
|
123 |
negative_prompt = gr.Textbox(label="negative_prompt", value=default_negative_prompt, placeholder=default_negative_prompt, info="what you don't want to see in the image")
|
124 |
-
center_crop = gr.Checkbox(label="
|
125 |
|
126 |
|
127 |
with gr.Column():
|
|
|
100 |
''')
|
101 |
with gr.Row():
|
102 |
with gr.Column():
|
103 |
+
image = gr.Image(elem_id="image_upload", type="pil", label="Upload", height=400)
|
104 |
# image = gr.Image(sources=None, type="pil") # None for upload, ctrl+v and webcam
|
105 |
|
106 |
|
|
|
121 |
steps = gr.Number(value=30, minimum=10, maximum=100, step=1, label="steps")
|
122 |
seed = gr.Number(value=0, minimum=0, maximum=100000, step=1, label="seed")
|
123 |
negative_prompt = gr.Textbox(label="negative_prompt", value=default_negative_prompt, placeholder=default_negative_prompt, info="what you don't want to see in the image")
|
124 |
+
center_crop = gr.Checkbox(label="center_crop", info="If not checked, the image would be resized to square before it's fed to the model."),
|
125 |
|
126 |
|
127 |
with gr.Column():
|