recoilme commited on
Commit
a38c82f
·
verified ·
1 Parent(s): 440e9e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -115,6 +115,7 @@ pipe = SimpleDiffusionPipeline(
115
 
116
  MAX_SEED = np.iinfo(np.int32).max
117
  MAX_IMAGE_SIZE = 640
 
118
 
119
  @spaces.GPU #[uncomment to use ZeroGPU]
120
  def infer(
@@ -205,7 +206,7 @@ with gr.Blocks(css=css) as demo:
205
  with gr.Row():
206
  width = gr.Slider(
207
  label="Width",
208
- minimum=384,
209
  maximum=MAX_IMAGE_SIZE,
210
  step=64,
211
  value=512, # Replace with defaults that work for your model
@@ -213,7 +214,7 @@ with gr.Blocks(css=css) as demo:
213
 
214
  height = gr.Slider(
215
  label="Height",
216
- minimum=384,
217
  maximum=MAX_IMAGE_SIZE,
218
  step=64,
219
  value=640, # Replace with defaults that work for your model
 
115
 
116
  MAX_SEED = np.iinfo(np.int32).max
117
  MAX_IMAGE_SIZE = 640
118
+ MIN_IMAGE_SIZE = 320
119
 
120
  @spaces.GPU #[uncomment to use ZeroGPU]
121
  def infer(
 
206
  with gr.Row():
207
  width = gr.Slider(
208
  label="Width",
209
+ minimum=MIN_IMAGE_SIZE,
210
  maximum=MAX_IMAGE_SIZE,
211
  step=64,
212
  value=512, # Replace with defaults that work for your model
 
214
 
215
  height = gr.Slider(
216
  label="Height",
217
+ minimum=MIN_IMAGE_SIZE,
218
  maximum=MAX_IMAGE_SIZE,
219
  step=64,
220
  value=640, # Replace with defaults that work for your model