Spaces:
Runtime error
Runtime error
examples
Browse files
app.py
CHANGED
@@ -230,9 +230,9 @@ def main():
|
|
230 |
# cache_examples=True,
|
231 |
examples_per_page=20)
|
232 |
with gr.Row():
|
233 |
-
|
234 |
[
|
235 |
-
'{"ops":[{"insert":"a
|
236 |
'',
|
237 |
512,
|
238 |
512,
|
@@ -241,26 +241,27 @@ def main():
|
|
241 |
None
|
242 |
],
|
243 |
[
|
244 |
-
'{"ops":[{"insert":"A
|
245 |
'',
|
246 |
512,
|
247 |
512,
|
248 |
-
|
249 |
1,
|
250 |
None
|
251 |
],
|
252 |
[
|
253 |
-
'{"ops":[{"insert":"A "},{"attributes":{"
|
254 |
'',
|
255 |
512,
|
256 |
512,
|
257 |
-
|
258 |
-
|
259 |
None
|
260 |
],
|
261 |
]
|
262 |
-
|
263 |
-
|
|
|
264 |
inputs=[
|
265 |
text_input,
|
266 |
negative_prompt,
|
@@ -279,37 +280,37 @@ def main():
|
|
279 |
# cache_examples=True,
|
280 |
examples_per_page=20)
|
281 |
with gr.Row():
|
282 |
-
|
283 |
[
|
284 |
-
'{"ops":
|
285 |
-
'
|
286 |
512,
|
287 |
512,
|
288 |
-
|
289 |
1,
|
290 |
None
|
291 |
],
|
292 |
[
|
293 |
-
'{"ops":
|
294 |
-
'
|
295 |
512,
|
296 |
512,
|
297 |
-
|
298 |
1,
|
299 |
None
|
300 |
],
|
301 |
[
|
302 |
-
'{"ops":
|
303 |
-
'
|
304 |
512,
|
305 |
512,
|
306 |
-
|
307 |
-
|
308 |
None
|
309 |
],
|
310 |
]
|
311 |
-
gr.Examples(examples=
|
312 |
-
label='Font
|
313 |
inputs=[
|
314 |
text_input,
|
315 |
negative_prompt,
|
@@ -328,19 +329,37 @@ def main():
|
|
328 |
# cache_examples=True,
|
329 |
examples_per_page=20)
|
330 |
with gr.Row():
|
331 |
-
|
332 |
[
|
333 |
-
'{"ops":[{"insert":"A
|
334 |
-
'',
|
335 |
512,
|
336 |
512,
|
337 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
338 |
1,
|
339 |
None
|
340 |
],
|
341 |
]
|
342 |
-
gr.Examples(examples=
|
343 |
-
label='
|
344 |
inputs=[
|
345 |
text_input,
|
346 |
negative_prompt,
|
@@ -358,7 +377,6 @@ def main():
|
|
358 |
fn=generate,
|
359 |
# cache_examples=True,
|
360 |
examples_per_page=20)
|
361 |
-
|
362 |
generate_button.click(
|
363 |
fn=generate,
|
364 |
inputs=[
|
|
|
230 |
# cache_examples=True,
|
231 |
examples_per_page=20)
|
232 |
with gr.Row():
|
233 |
+
footnote_examples = [
|
234 |
[
|
235 |
+
'{"ops":[{"insert":"A close-up 4k dslr photo of a "},{"attributes":{"link":"A cat wearing sunglasses and a bandana around its neck."},"insert":"cat"},{"insert":" riding a scooter. Palm trees in the background."}]}',
|
236 |
'',
|
237 |
512,
|
238 |
512,
|
|
|
241 |
None
|
242 |
],
|
243 |
[
|
244 |
+
'{"ops":[{"insert":"A "},{"attributes":{"link":"kitchen island with a built-in oven and a stove with gas burners "},"insert":"kitchen island"},{"insert":" next to a "},{"attributes":{"link":"an open refrigerator stocked with fresh produce, dairy products, and beverages. "},"insert":"refrigerator"},{"insert":", by James McDonald and Joarc Architects, home, interior, octane render, deviantart, cinematic, key art, hyperrealism, sun light, sunrays, canon eos c 300, ƒ 1.8, 35 mm, 8k, medium - format print"}]}',
|
245 |
'',
|
246 |
512,
|
247 |
512,
|
248 |
+
6,
|
249 |
1,
|
250 |
None
|
251 |
],
|
252 |
[
|
253 |
+
'{"ops":[{"insert":"A "},{"attributes":{"link":"Art inspired by kung fu panda, elder, asian art, volumetric lighting, dramatic scene, ultra detailed, realism, chinese"},"insert":"panda"},{"insert":" standing on a cliff by a waterfall, wildlife photography, photograph, high quality, wildlife, f 1.8, soft focus, 8k, national geographic, award - winning photograph by nick nichols"}]}',
|
254 |
'',
|
255 |
512,
|
256 |
512,
|
257 |
+
6,
|
258 |
+
1,
|
259 |
None
|
260 |
],
|
261 |
]
|
262 |
+
|
263 |
+
gr.Examples(examples=footnote_examples,
|
264 |
+
label='Footnote examples',
|
265 |
inputs=[
|
266 |
text_input,
|
267 |
negative_prompt,
|
|
|
280 |
# cache_examples=True,
|
281 |
examples_per_page=20)
|
282 |
with gr.Row():
|
283 |
+
color_examples = [
|
284 |
[
|
285 |
+
'{"ops":[{"insert":"a Gothic "},{"attributes":{"color":"#b26b00"},"insert":"church"},{"insert":" in a the sunset with a beautiful landscape in the background."}]}',
|
286 |
+
'',
|
287 |
512,
|
288 |
512,
|
289 |
+
6,
|
290 |
1,
|
291 |
None
|
292 |
],
|
293 |
[
|
294 |
+
'{"ops":[{"insert":"A mesmerizing sight that captures the beauty of a "},{"attributes":{"color":"#4775fc"},"insert":"rose"},{"insert":" blooming, close up"}]}',
|
295 |
+
'',
|
296 |
512,
|
297 |
512,
|
298 |
+
9,
|
299 |
1,
|
300 |
None
|
301 |
],
|
302 |
[
|
303 |
+
'{"ops":[{"insert":"A "},{"attributes":{"color":"#FFD700"},"insert":"marble statue of a wolf\'s head and shoulder"},{"insert":", surrounded by colorful flowers michelangelo, detailed, intricate, full of color, led lighting, trending on artstation, 4 k, hyperrealistic, 3 5 mm, focused, extreme details, unreal engine 5, masterpiece "}]}',
|
304 |
+
'',
|
305 |
512,
|
306 |
512,
|
307 |
+
5,
|
308 |
+
0.6,
|
309 |
None
|
310 |
],
|
311 |
]
|
312 |
+
gr.Examples(examples=color_examples,
|
313 |
+
label='Font color examples',
|
314 |
inputs=[
|
315 |
text_input,
|
316 |
negative_prompt,
|
|
|
329 |
# cache_examples=True,
|
330 |
examples_per_page=20)
|
331 |
with gr.Row():
|
332 |
+
size_examples = [
|
333 |
[
|
334 |
+
'{"ops": [{"insert": "A pizza with "}, {"attributes": {"size": "60px"}, "insert": "pineapple"}, {"insert": ", pepperoni, and mushroom on the top, 4k, photorealistic"}]}',
|
335 |
+
'blurry, art, painting, rendering, drawing, sketch, ugly, duplicate, morbid, mutilated, mutated, deformed, disfigured low quality, worst quality',
|
336 |
512,
|
337 |
512,
|
338 |
+
13,
|
339 |
+
1,
|
340 |
+
None
|
341 |
+
],
|
342 |
+
[
|
343 |
+
'{"ops": [{"insert": "A pizza with pineapple, "}, {"attributes": {"size": "20px"}, "insert": "pepperoni"}, {"insert": ", and mushroom on the top, 4k, photorealistic"}]}',
|
344 |
+
'blurry, art, painting, rendering, drawing, sketch, ugly, duplicate, morbid, mutilated, mutated, deformed, disfigured low quality, worst quality',
|
345 |
+
512,
|
346 |
+
512,
|
347 |
+
13,
|
348 |
+
1,
|
349 |
+
None
|
350 |
+
],
|
351 |
+
[
|
352 |
+
'{"ops": [{"insert": "A pizza with pineapple, pepperoni, and"}, {"attributes": {"size": "70px"}, "insert": "mushroom"}, {"insert": " on the top, 4k, photorealistic"}]}',
|
353 |
+
'blurry, art, painting, rendering, drawing, sketch, ugly, duplicate, morbid, mutilated, mutated, deformed, disfigured low quality, worst quality',
|
354 |
+
512,
|
355 |
+
512,
|
356 |
+
13,
|
357 |
1,
|
358 |
None
|
359 |
],
|
360 |
]
|
361 |
+
gr.Examples(examples=size_examples,
|
362 |
+
label='Font size examples',
|
363 |
inputs=[
|
364 |
text_input,
|
365 |
negative_prompt,
|
|
|
377 |
fn=generate,
|
378 |
# cache_examples=True,
|
379 |
examples_per_page=20)
|
|
|
380 |
generate_button.click(
|
381 |
fn=generate,
|
382 |
inputs=[
|