x0-0x commited on
Commit
7facfa8
·
verified ·
1 Parent(s): 25d5b43

Update app.py

Browse files

![Xed-0 (4).png](https://cdn-uploads.huggingface.co/production/uploads/6764e30f47578a05bd320f28/td3WrspM-_w5pFUZJ-bhV.png)

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,7 +18,7 @@ pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
18
  pipe = pipe.to(device)
19
 
20
  MAX_SEED = np.iinfo(np.int32).max
21
- MAX_IMAGE_SIZE = 1024
22
 
23
 
24
 
@@ -105,7 +105,7 @@ with gr.Blocks(css=css) as demo:
105
  minimum=256,
106
  maximum=MAX_IMAGE_SIZE,
107
  step=32,
108
- value=1024, # Replace with defaults that work for your model
109
  )
110
 
111
  height = gr.Slider(
@@ -113,7 +113,7 @@ with gr.Blocks(css=css) as demo:
113
  minimum=256,
114
  maximum=MAX_IMAGE_SIZE,
115
  step=32,
116
- value=1024, # Replace with defaults that work for your model
117
  )
118
 
119
  with gr.Row():
 
18
  pipe = pipe.to(device)
19
 
20
  MAX_SEED = np.iinfo(np.int32).max
21
+ MAX_IMAGE_SIZE = 720
22
 
23
 
24
 
 
105
  minimum=256,
106
  maximum=MAX_IMAGE_SIZE,
107
  step=32,
108
+ value=720, # Replace with defaults that work for your model
109
  )
110
 
111
  height = gr.Slider(
 
113
  minimum=256,
114
  maximum=MAX_IMAGE_SIZE,
115
  step=32,
116
+ value=720, # Replace with defaults that work for your model
117
  )
118
 
119
  with gr.Row():