Spaces:
Sleeping
Sleeping
change space for hw5 #3
Browse files
app.py
CHANGED
@@ -141,7 +141,7 @@ with gr.Blocks(css=css) as demo:
|
|
141 |
minimum=256,
|
142 |
maximum=MAX_IMAGE_SIZE,
|
143 |
step=32,
|
144 |
-
value=
|
145 |
)
|
146 |
|
147 |
height = gr.Slider(
|
@@ -149,7 +149,7 @@ with gr.Blocks(css=css) as demo:
|
|
149 |
minimum=256,
|
150 |
maximum=MAX_IMAGE_SIZE,
|
151 |
step=32,
|
152 |
-
value=
|
153 |
)
|
154 |
|
155 |
with gr.Row():
|
@@ -158,7 +158,7 @@ with gr.Blocks(css=css) as demo:
|
|
158 |
minimum=0.0,
|
159 |
maximum=10.0,
|
160 |
step=0.1,
|
161 |
-
value=
|
162 |
)
|
163 |
|
164 |
num_inference_steps = gr.Slider(
|
@@ -166,7 +166,7 @@ with gr.Blocks(css=css) as demo:
|
|
166 |
minimum=1,
|
167 |
maximum=50,
|
168 |
step=1,
|
169 |
-
value=
|
170 |
)
|
171 |
|
172 |
gr.Examples(examples=examples, inputs=[prompt])
|
|
|
141 |
minimum=256,
|
142 |
maximum=MAX_IMAGE_SIZE,
|
143 |
step=32,
|
144 |
+
value=512, # Replace with defaults that work for your model
|
145 |
)
|
146 |
|
147 |
height = gr.Slider(
|
|
|
149 |
minimum=256,
|
150 |
maximum=MAX_IMAGE_SIZE,
|
151 |
step=32,
|
152 |
+
value=512, # Replace with defaults that work for your model
|
153 |
)
|
154 |
|
155 |
with gr.Row():
|
|
|
158 |
minimum=0.0,
|
159 |
maximum=10.0,
|
160 |
step=0.1,
|
161 |
+
value=10.0, # Replace with defaults that work for your model
|
162 |
)
|
163 |
|
164 |
num_inference_steps = gr.Slider(
|
|
|
166 |
minimum=1,
|
167 |
maximum=50,
|
168 |
step=1,
|
169 |
+
value=50, # Replace with defaults that work for your model
|
170 |
)
|
171 |
|
172 |
gr.Examples(examples=examples, inputs=[prompt])
|