Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ examples = [
|
|
61 |
css = """
|
62 |
#col-container {
|
63 |
margin: 0 auto;
|
64 |
-
max-width:
|
65 |
}
|
66 |
"""
|
67 |
|
@@ -103,18 +103,18 @@ with gr.Blocks(css=css) as demo:
|
|
103 |
with gr.Row():
|
104 |
width = gr.Slider(
|
105 |
label="Width",
|
106 |
-
minimum=
|
107 |
maximum=MAX_IMAGE_SIZE,
|
108 |
step=1.3,
|
109 |
-
value=
|
110 |
)
|
111 |
|
112 |
height = gr.Slider(
|
113 |
label="Height",
|
114 |
-
minimum=
|
115 |
maximum=MAX_IMAGE_SIZE,
|
116 |
step=1.6,
|
117 |
-
value=
|
118 |
)
|
119 |
|
120 |
with gr.Row():
|
@@ -129,9 +129,9 @@ with gr.Blocks(css=css) as demo:
|
|
129 |
num_inference_steps = gr.Slider(
|
130 |
label="Number of inference steps",
|
131 |
minimum=1,
|
132 |
-
maximum=
|
133 |
-
step=
|
134 |
-
value=
|
135 |
)
|
136 |
|
137 |
gr.Examples(examples=examples, inputs=[prompt])
|
|
|
61 |
css = """
|
62 |
#col-container {
|
63 |
margin: 0 auto;
|
64 |
+
max-width: 600px;
|
65 |
}
|
66 |
"""
|
67 |
|
|
|
103 |
with gr.Row():
|
104 |
width = gr.Slider(
|
105 |
label="Width",
|
106 |
+
minimum=600,
|
107 |
maximum=MAX_IMAGE_SIZE,
|
108 |
step=1.3,
|
109 |
+
value=600,
|
110 |
)
|
111 |
|
112 |
height = gr.Slider(
|
113 |
label="Height",
|
114 |
+
minimum=400,
|
115 |
maximum=MAX_IMAGE_SIZE,
|
116 |
step=1.6,
|
117 |
+
value=400,
|
118 |
)
|
119 |
|
120 |
with gr.Row():
|
|
|
129 |
num_inference_steps = gr.Slider(
|
130 |
label="Number of inference steps",
|
131 |
minimum=1,
|
132 |
+
maximum=6,
|
133 |
+
step=3,
|
134 |
+
value=3,
|
135 |
)
|
136 |
|
137 |
gr.Examples(examples=examples, inputs=[prompt])
|