Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -52,9 +52,13 @@ def infer(
|
|
52 |
|
53 |
|
54 |
examples = [
|
55 |
-
"Astronaut in a jungle
|
56 |
-
"
|
|
|
|
|
57 |
"A delicious ceviche cheesecake slice",
|
|
|
|
|
58 |
]
|
59 |
|
60 |
css = """
|
@@ -86,7 +90,7 @@ with gr.Blocks(css=css) as demo:
|
|
86 |
label="Negative prompt",
|
87 |
max_lines=1,
|
88 |
placeholder="Enter a negative prompt",
|
89 |
-
visible=
|
90 |
)
|
91 |
|
92 |
seed = gr.Slider(
|
@@ -105,7 +109,7 @@ with gr.Blocks(css=css) as demo:
|
|
105 |
minimum=256,
|
106 |
maximum=MAX_IMAGE_SIZE,
|
107 |
step=32,
|
108 |
-
value=
|
109 |
)
|
110 |
|
111 |
height = gr.Slider(
|
@@ -113,7 +117,7 @@ with gr.Blocks(css=css) as demo:
|
|
113 |
minimum=256,
|
114 |
maximum=MAX_IMAGE_SIZE,
|
115 |
step=32,
|
116 |
-
value=
|
117 |
)
|
118 |
|
119 |
with gr.Row():
|
@@ -122,7 +126,7 @@ with gr.Blocks(css=css) as demo:
|
|
122 |
minimum=0.0,
|
123 |
maximum=10.0,
|
124 |
step=0.1,
|
125 |
-
value=
|
126 |
)
|
127 |
|
128 |
num_inference_steps = gr.Slider(
|
@@ -130,7 +134,7 @@ with gr.Blocks(css=css) as demo:
|
|
130 |
minimum=1,
|
131 |
maximum=50,
|
132 |
step=1,
|
133 |
-
value=
|
134 |
)
|
135 |
|
136 |
gr.Examples(examples=examples, inputs=[prompt])
|
|
|
52 |
|
53 |
|
54 |
examples = [
|
55 |
+
"Professional Photo <Astronaut in a jungle>",
|
56 |
+
"Cute anime Girl",
|
57 |
+
"A high tech solarpunk utopia in the Amazon rainforest",
|
58 |
+
"An insect robot preparing a delicious meal",
|
59 |
"A delicious ceviche cheesecake slice",
|
60 |
+
"An astronaut riding a green horse",
|
61 |
+
|
62 |
]
|
63 |
|
64 |
css = """
|
|
|
90 |
label="Negative prompt",
|
91 |
max_lines=1,
|
92 |
placeholder="Enter a negative prompt",
|
93 |
+
visible=True,
|
94 |
)
|
95 |
|
96 |
seed = gr.Slider(
|
|
|
109 |
minimum=256,
|
110 |
maximum=MAX_IMAGE_SIZE,
|
111 |
step=32,
|
112 |
+
value=768, # Replace with defaults that work for your model
|
113 |
)
|
114 |
|
115 |
height = gr.Slider(
|
|
|
117 |
minimum=256,
|
118 |
maximum=MAX_IMAGE_SIZE,
|
119 |
step=32,
|
120 |
+
value=768, # Replace with defaults that work for your model
|
121 |
)
|
122 |
|
123 |
with gr.Row():
|
|
|
126 |
minimum=0.0,
|
127 |
maximum=10.0,
|
128 |
step=0.1,
|
129 |
+
value=4.5, # Replace with defaults that work for your model
|
130 |
)
|
131 |
|
132 |
num_inference_steps = gr.Slider(
|
|
|
134 |
minimum=1,
|
135 |
maximum=50,
|
136 |
step=1,
|
137 |
+
value=24, # Replace with defaults that work for your model
|
138 |
)
|
139 |
|
140 |
gr.Examples(examples=examples, inputs=[prompt])
|