mrestrepo commited on
Commit
3afa353
·
1 Parent(s): 91cb22c

Image size conditions

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -18,7 +18,7 @@ pipeline.load_lora_weights('Roomie/xavyy', weight_name='xavyy.safetensors')
18
 
19
 
20
  MAX_SEED = np.iinfo(np.int32).max
21
- MAX_IMAGE_SIZE = 2000
22
 
23
 
24
  @spaces.GPU
@@ -88,18 +88,20 @@ with gr.Blocks(css=css) as demo:
88
 
89
  width = gr.Slider(
90
  label="Width",
 
91
  minimum=256,
92
  maximum=MAX_IMAGE_SIZE,
93
- step=32,
94
- value=400, # Replace with defaults that work for your model
95
  )
96
 
97
  height = gr.Slider(
98
  label="Height",
 
99
  minimum=256,
100
  maximum=MAX_IMAGE_SIZE,
101
- step=32,
102
- value=600, # Replace with defaults that work for your model
103
  )
104
 
105
  with gr.Row():
 
18
 
19
 
20
  MAX_SEED = np.iinfo(np.int32).max
21
+ MAX_IMAGE_SIZE = 1024
22
 
23
 
24
  @spaces.GPU
 
88
 
89
  width = gr.Slider(
90
  label="Width",
91
+ info="Solo cambiar con las flechas o escoger una medida que sea multiplo de 8",
92
  minimum=256,
93
  maximum=MAX_IMAGE_SIZE,
94
+ step=8,
95
+ value=1024,
96
  )
97
 
98
  height = gr.Slider(
99
  label="Height",
100
+ info="Solo cambiar con las flechas o escoger una medida que sea multiplo de 8",
101
  minimum=256,
102
  maximum=MAX_IMAGE_SIZE,
103
+ step=8,
104
+ value=1024,
105
  )
106
 
107
  with gr.Row():