QHL067 commited on
Commit
9772b52
·
1 Parent(s): 91e8f4b
Files changed (1) hide show
  1. app.py +2 -23
app.py CHANGED
@@ -28,8 +28,6 @@ def infer(
28
  negative_prompt,
29
  seed,
30
  randomize_seed,
31
- width,
32
- height,
33
  guidance_scale,
34
  num_inference_steps,
35
  progress=gr.Progress(track_tqdm=True),
@@ -114,30 +112,13 @@ with gr.Blocks(css=css) as demo:
114
 
115
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
116
 
117
- with gr.Row():
118
- width = gr.Slider(
119
- label="Width",
120
- minimum=256,
121
- maximum=MAX_IMAGE_SIZE,
122
- step=32,
123
- value=1024, # Replace with defaults that work for your model
124
- )
125
-
126
- height = gr.Slider(
127
- label="Height",
128
- minimum=256,
129
- maximum=MAX_IMAGE_SIZE,
130
- step=32,
131
- value=1024, # Replace with defaults that work for your model
132
- )
133
-
134
  with gr.Row():
135
  guidance_scale = gr.Slider(
136
  label="Guidance scale",
137
  minimum=0.0,
138
  maximum=10.0,
139
  step=0.1,
140
- value=0.0, # Replace with defaults that work for your model
141
  )
142
 
143
  num_inference_steps = gr.Slider(
@@ -145,7 +126,7 @@ with gr.Blocks(css=css) as demo:
145
  minimum=1,
146
  maximum=50,
147
  step=1,
148
- value=2, # Replace with defaults that work for your model
149
  )
150
 
151
  gr.Examples(examples=examples, inputs=[prompt1, prompt2])
@@ -158,8 +139,6 @@ with gr.Blocks(css=css) as demo:
158
  negative_prompt,
159
  seed,
160
  randomize_seed,
161
- width,
162
- height,
163
  guidance_scale,
164
  num_inference_steps,
165
  ],
 
28
  negative_prompt,
29
  seed,
30
  randomize_seed,
 
 
31
  guidance_scale,
32
  num_inference_steps,
33
  progress=gr.Progress(track_tqdm=True),
 
112
 
113
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
114
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
115
  with gr.Row():
116
  guidance_scale = gr.Slider(
117
  label="Guidance scale",
118
  minimum=0.0,
119
  maximum=10.0,
120
  step=0.1,
121
+ value=7.0, # Replace with defaults that work for your model
122
  )
123
 
124
  num_inference_steps = gr.Slider(
 
126
  minimum=1,
127
  maximum=50,
128
  step=1,
129
+ value=50, # Replace with defaults that work for your model
130
  )
131
 
132
  gr.Examples(examples=examples, inputs=[prompt1, prompt2])
 
139
  negative_prompt,
140
  seed,
141
  randomize_seed,
 
 
142
  guidance_scale,
143
  num_inference_steps,
144
  ],