animrods commited on
Commit
e82a196
·
verified ·
1 Parent(s): b07e218

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -101,7 +101,9 @@ with image_blocks as demo:
101
  ''')
102
  with gr.Row():
103
  with gr.Column():
104
- image = gr.ImageEditor(elem_id="image_upload", type="pil", label="Upload", height=400)
 
 
105
  # image = gr.Image(sources=None, type="pil") # None for upload, ctrl+v and webcam
106
 
107
 
@@ -118,7 +120,7 @@ with image_blocks as demo:
118
 
119
  with gr.Accordion(label="Advanced Settings", open=False):
120
  with gr.Row(equal_height=True):
121
- guidance_scale = gr.Number(value=5, minimum=1.0, maximum=10.0, step=0.5, label="guidance_scale")
122
  steps = gr.Number(value=30, minimum=10, maximum=100, step=1, label="steps")
123
  seed = gr.Number(value=0, minimum=0, maximum=100000, step=1, label="seed")
124
  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")
 
101
  ''')
102
  with gr.Row():
103
  with gr.Column():
104
+ # image = gr.ImageEditor(elem_id="image_upload", type="pil", label="Upload", height=400)
105
+ image = gr.ImageEditor(type='pil', image_mode="RGB", width=512, height=512, interactive=True, )
106
+
107
  # image = gr.Image(sources=None, type="pil") # None for upload, ctrl+v and webcam
108
 
109
 
 
120
 
121
  with gr.Accordion(label="Advanced Settings", open=False):
122
  with gr.Row(equal_height=True):
123
+ guidance_scale = gr.Number(value=7, minimum=1.0, maximum=10.0, step=0.5, label="guidance_scale")
124
  steps = gr.Number(value=30, minimum=10, maximum=100, step=1, label="steps")
125
  seed = gr.Number(value=0, minimum=0, maximum=100000, step=1, label="seed")
126
  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")