Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -118,6 +118,16 @@ def infer(
|
|
| 118 |
|
| 119 |
return pipe(**params).images[0]
|
| 120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
css = """
|
| 122 |
#col-container {
|
| 123 |
margin: 0 auto;
|
|
@@ -260,6 +270,9 @@ with gr.Blocks(css=css, fill_height=True) as demo:
|
|
| 260 |
value=512, # Replace with defaults that work for your model
|
| 261 |
)
|
| 262 |
|
|
|
|
|
|
|
|
|
|
| 263 |
run_button = gr.Button("Run", scale=0, variant="primary")
|
| 264 |
result = gr.Image(label="Result", show_label=False)
|
| 265 |
|
|
|
|
| 118 |
|
| 119 |
return pipe(**params).images[0]
|
| 120 |
|
| 121 |
+
examples = [
|
| 122 |
+
"Puss in Boots wearing a sombrero crosses the Grand Canyon on a tightrope with a guitar.",
|
| 123 |
+
"A cat is playing a song called ""About the Cat"" on an accordion by the sea at sunset. The sun is quickly setting behind the horizon, and the light is fading.",
|
| 124 |
+
"A cat walks through the grass on the streets of an abandoned city. The camera view is always focused on the cat's face.",
|
| 125 |
+
"A young lady in a Russian embroidered kaftan is sitting on a beautiful carved veranda, holding a cup to her mouth and drinking tea from the cup. With her other hand, the girl holds a saucer. The cup and saucer are painted with gzhel. Next to the girl on the table stands a samovar, and steam can be seen above it.",
|
| 126 |
+
"Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
|
| 127 |
+
"An astronaut riding a green horse",
|
| 128 |
+
"A delicious ceviche cheesecake slice",
|
| 129 |
+
]
|
| 130 |
+
|
| 131 |
css = """
|
| 132 |
#col-container {
|
| 133 |
margin: 0 auto;
|
|
|
|
| 270 |
value=512, # Replace with defaults that work for your model
|
| 271 |
)
|
| 272 |
|
| 273 |
+
gr.Examples(examples=examples, inputs=[prompt])
|
| 274 |
+
|
| 275 |
+
|
| 276 |
run_button = gr.Button("Run", scale=0, variant="primary")
|
| 277 |
result = gr.Image(label="Result", show_label=False)
|
| 278 |
|