songweig commited on
Commit
d5ac409
1 Parent(s): 2ce222a

remove color

Browse files
Files changed (1) hide show
  1. app.py +69 -69
app.py CHANGED
@@ -319,75 +319,75 @@ def main():
319
  fn=generate,
320
  cache_examples=True,
321
  examples_per_page=20)
322
- with gr.Row():
323
- color_examples = [
324
- [
325
- '{"ops":[{"insert":"a beautifule girl with big eye, skin, and long "},{"attributes":{"color":"#04a704"},"insert":"hair"},{"insert":", t-shirt, bursting with vivid color, intricate, elegant, highly detailed, photorealistic, digital painting, artstation, illustration, concept art."}]}',
326
- 'lowres, had anatomy, bad hands, cropped, worst quality',
327
- 11,
328
- 0.5,
329
- 0.3,
330
- 0.3,
331
- 6,
332
- 0.5,
333
- None,
334
- ],
335
- [
336
- '{"ops":[{"insert":"a beautifule girl with big eye, skin, and long "},{"attributes":{"color":"#ff5df1"},"insert":"hair"},{"insert":", t-shirt, bursting with vivid color, intricate, elegant, highly detailed, photorealistic, digital painting, artstation, illustration, concept art."}]}',
337
- 'lowres, had anatomy, bad hands, cropped, worst quality',
338
- 11,
339
- 0.5,
340
- 0.3,
341
- 0.3,
342
- 6,
343
- 0.5,
344
- None,
345
- ],
346
- [
347
- '{"ops":[{"insert":"a beautifule girl with big eye, skin, and long "},{"attributes":{"color":"#999999"},"insert":"hair"},{"insert":", t-shirt, bursting with vivid color, intricate, elegant, highly detailed, photorealistic, digital painting, artstation, illustration, concept art."}]}',
348
- 'lowres, had anatomy, bad hands, cropped, worst quality',
349
- 11,
350
- 0.5,
351
- 0.3,
352
- 0.3,
353
- 6,
354
- 0.5,
355
- None,
356
- ],
357
- [
358
- '{"ops":[{"insert":"a Gothic "},{"attributes":{"color":"#FD6C9E"},"insert":"church"},{"insert":" in a the sunset with a beautiful landscape in the background."}]}',
359
- '',
360
- 10,
361
- 0.5,
362
- 0.5,
363
- 0.3,
364
- 7,
365
- 0.5,
366
- None,
367
- ],
368
- ]
369
- gr.Examples(examples=color_examples,
370
- label='Font color examples',
371
- inputs=[
372
- text_input,
373
- negative_prompt,
374
- num_segments,
375
- segment_threshold,
376
- inject_interval,
377
- inject_background,
378
- seed,
379
- color_guidance_weight,
380
- rich_text_input,
381
- ],
382
- outputs=[
383
- plaintext_result,
384
- richtext_result,
385
- segments,
386
- token_map,
387
- ],
388
- fn=generate,
389
- cache_examples=True,
390
- examples_per_page=20)
391
 
392
  with gr.Row():
393
  style_examples = [
 
319
  fn=generate,
320
  cache_examples=True,
321
  examples_per_page=20)
322
+ # with gr.Row():
323
+ # color_examples = [
324
+ # [
325
+ # '{"ops":[{"insert":"a beautifule girl with big eye, skin, and long "},{"attributes":{"color":"#04a704"},"insert":"hair"},{"insert":", t-shirt, bursting with vivid color, intricate, elegant, highly detailed, photorealistic, digital painting, artstation, illustration, concept art."}]}',
326
+ # 'lowres, had anatomy, bad hands, cropped, worst quality',
327
+ # 11,
328
+ # 0.5,
329
+ # 0.3,
330
+ # 0.3,
331
+ # 6,
332
+ # 0.5,
333
+ # None,
334
+ # ],
335
+ # [
336
+ # '{"ops":[{"insert":"a beautifule girl with big eye, skin, and long "},{"attributes":{"color":"#ff5df1"},"insert":"hair"},{"insert":", t-shirt, bursting with vivid color, intricate, elegant, highly detailed, photorealistic, digital painting, artstation, illustration, concept art."}]}',
337
+ # 'lowres, had anatomy, bad hands, cropped, worst quality',
338
+ # 11,
339
+ # 0.5,
340
+ # 0.3,
341
+ # 0.3,
342
+ # 6,
343
+ # 0.5,
344
+ # None,
345
+ # ],
346
+ # [
347
+ # '{"ops":[{"insert":"a beautifule girl with big eye, skin, and long "},{"attributes":{"color":"#999999"},"insert":"hair"},{"insert":", t-shirt, bursting with vivid color, intricate, elegant, highly detailed, photorealistic, digital painting, artstation, illustration, concept art."}]}',
348
+ # 'lowres, had anatomy, bad hands, cropped, worst quality',
349
+ # 11,
350
+ # 0.5,
351
+ # 0.3,
352
+ # 0.3,
353
+ # 6,
354
+ # 0.5,
355
+ # None,
356
+ # ],
357
+ # [
358
+ # '{"ops":[{"insert":"a Gothic "},{"attributes":{"color":"#FD6C9E"},"insert":"church"},{"insert":" in a the sunset with a beautiful landscape in the background."}]}',
359
+ # '',
360
+ # 10,
361
+ # 0.5,
362
+ # 0.5,
363
+ # 0.3,
364
+ # 7,
365
+ # 0.5,
366
+ # None,
367
+ # ],
368
+ # ]
369
+ # gr.Examples(examples=color_examples,
370
+ # label='Font color examples',
371
+ # inputs=[
372
+ # text_input,
373
+ # negative_prompt,
374
+ # num_segments,
375
+ # segment_threshold,
376
+ # inject_interval,
377
+ # inject_background,
378
+ # seed,
379
+ # color_guidance_weight,
380
+ # rich_text_input,
381
+ # ],
382
+ # outputs=[
383
+ # plaintext_result,
384
+ # richtext_result,
385
+ # segments,
386
+ # token_map,
387
+ # ],
388
+ # fn=generate,
389
+ # cache_examples=True,
390
+ # examples_per_page=20)
391
 
392
  with gr.Row():
393
  style_examples = [