svjack commited on
Commit
7ff2265
ยท
1 Parent(s): 8317ac1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +63 -0
app.py CHANGED
@@ -522,10 +522,12 @@ with gr.Blocks(css = css) as demo:
522
  with gr.Column():
523
  outputs = gr.Gallery(lable='Output gallery', elem_id="gallery",).style(grid=5,height=768 - 64 - 32,
524
  allow_preview=False, label = "retrieve Images")
 
525
  exp_title = gr.HTML(
526
  """<br/><br/><h5 align="center"> <font size="+1"> Emojis examples live in ๐Ÿ•Œ travel to StableDiffusion ๐ŸŒ </font> </h5>""",
527
  #elem_id="title",
528
  )
 
529
  gr.Examples(
530
  [
531
  ["๐Ÿ”", "Only Emoji"],
@@ -566,6 +568,67 @@ with gr.Blocks(css = css) as demo:
566
  inputs = [emoji_outputs, emoji2text_or_not],
567
  #label = "๐Ÿ•Œ Examples"
568
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
569
 
570
  with gr.Row():
571
  with gr.Tab(label = "Download"):
 
522
  with gr.Column():
523
  outputs = gr.Gallery(lable='Output gallery', elem_id="gallery",).style(grid=5,height=768 - 64 - 32,
524
  allow_preview=False, label = "retrieve Images")
525
+
526
  exp_title = gr.HTML(
527
  """<br/><br/><h5 align="center"> <font size="+1"> Emojis examples live in ๐Ÿ•Œ travel to StableDiffusion ๐ŸŒ </font> </h5>""",
528
  #elem_id="title",
529
  )
530
+ '''
531
  gr.Examples(
532
  [
533
  ["๐Ÿ”", "Only Emoji"],
 
568
  inputs = [emoji_outputs, emoji2text_or_not],
569
  #label = "๐Ÿ•Œ Examples"
570
  )
571
+ '''
572
+ with gr.Column():
573
+ gr.HTML(
574
+ """<h6 align="center"> <font size="+1"> ๐Ÿ•Œ Only Emoji examples </font> </h6>""",
575
+ #elem_id="title",
576
+ )
577
+ gr.Examples(
578
+ [
579
+ ["๐Ÿ”", "Only Emoji"],
580
+ ["๐Ÿ”ฅ๐ŸŒฒ", "Only Emoji"],
581
+ ["๐Ÿป๐Ÿฆโ„๏ธ๐ŸŒŠ", "Only Emoji"],
582
+ ],
583
+ inputs = [emoji_outputs, emoji2text_or_not],
584
+ #label = "๐Ÿ•Œ Examples"
585
+ )
586
+ gr.HTML(
587
+ """<h6 align="center"> <font size="+1"> ๐Ÿ•Œโžก๏ธ๐Ÿ”ค Emoji to Text examples </font> </h6>""",
588
+ #elem_id="title",
589
+ )
590
+ gr.Examples(
591
+ [
592
+ ["๐Ÿฑ๐Ÿฝ๏ธ๐Ÿ‘จ", "Emoji to Text"],
593
+ ["๐ŸŒŽ๐Ÿฆถ๐Ÿ‘‚๐Ÿ’ค", "Emoji to Text"],
594
+ ["๐Ÿ‘ฉโ€๐Ÿ”ฌ๐Ÿ—ฃโ˜•๐Ÿ‘จโ€๐ŸŽจ", "Emoji to Text"],
595
+ ["๐Ÿ‘œ๐Ÿ‘š๐Ÿงฃ๐Ÿ‘ธ๐ŸฐโœŒ๏ธ", "Emoji to Text"],
596
+ ["๐Ÿ‘๐Ÿ๐ŸŽƒ๐Ÿ‘ถ๐Ÿฅ›๐ŸŒพ๐Ÿ•ต๐Ÿƒโ€โ™€๏ธ", "Emoji to Text"],
597
+ ["๐Ÿ™ƒ๐Ÿ’๐Ÿ‘‹๐Ÿ‘จโ€๐Ÿ”ง๐Ÿ‘„๐Ÿฅ€๐ŸŒŽ๐ŸŒ™", "Emoji to Text"],
598
+ ],
599
+ inputs = [emoji_outputs, emoji2text_or_not],
600
+ #label = "๐Ÿ•Œ Examples"
601
+ )
602
+ gr.HTML(
603
+ """<h6 align="center"> <font size="+1"> ๐Ÿ“–โš–๏ธ๐Ÿ•Œ ChengYu with Emoji examples </font> </h6>""",
604
+ #elem_id="title",
605
+ )
606
+ gr.Examples(
607
+ [
608
+ ["ๅˆ€ๅฑฑ็ซๆตท:๐Ÿ™ƒโšก๐Ÿ‘ฉโ€๐Ÿš’๐Ÿงœโ€โ™‚๏ธ", "ChengYu with Emoji"],
609
+ ["ไผ ไธบไฝณ่ฏ:๐Ÿก๐Ÿงฃ๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง๐Ÿ‘ฉโ€๐ŸŽจ", "ChengYu with Emoji"],
610
+ ["ๅคง้“่‡ณ็ฎ€:๐Ÿ‡จ๐Ÿ‡ณ๐ŸŒพ๐Ÿง ๐Ÿ‘€โ€โ™‚๏ธ", "ChengYu with Emoji"],
611
+ ["ๆ˜ฅๆฑŸๆฝฎๆฐด่ฟžๆตทๅนณ:๐ŸŒž๐ŸŒบ๐Ÿ’ฆ๐Ÿคค๐Ÿชท๐ŸŒŠโ˜€๏ธ", "ChengYu with Emoji"],
612
+ ["ๆœˆๆ˜Žๆ˜Ÿ็จ€๏ผŒไนŒ้นŠๅ—้ฃžใ€‚:๐ŸŒ›๐ŸŒ›โœจ๐Ÿซ…๐Ÿฆ๐Ÿฆ†๐Ÿฆข๐Ÿชฝ", "ChengYu with Emoji"]
613
+ ],
614
+ inputs = [emoji_outputs, emoji2text_or_not],
615
+ #label = "๐Ÿ•Œ Examples"
616
+ )
617
+ gr.HTML(
618
+ """<h6 align="center"> <font size="+1"> ๐Ÿ“–โžก๏ธ๐Ÿ•Œโš–๏ธ๐Ÿ“– Fix + ChengYu with Emoji examples (click above "Fix" Button: Emojis Fixed by ChengYu) </font> </h6>""",
619
+ #elem_id="title",
620
+ )
621
+ gr.Examples(
622
+ [
623
+ ["้ฅฑๅญฆไน‹ๅฃซ:๐Ÿซ๐Ÿ“š๐Ÿ’ญ๐Ÿ™Œ", "ChengYu with Emoji"],
624
+ ["โ€็ฌ”ไธ‹็”Ÿ่Šฑ:๐ŸŽจ๐ŸŒน๐Ÿ“๐ŸŒบ", "ChengYu with Emoji"],
625
+ ["โ€็™พๅชšๅƒๅจ‡:๐ŸŒน๐Ÿ’•๐ŸŒธ๐Ÿ’‹", "ChengYu with Emoji"],
626
+ ["ๆฏ”็ฟผ่ฟžๆž:๐Ÿ’๐ŸŒน๐ŸŒบ๐Ÿ’—", "ChengYu with Emoji"],
627
+ ["โ€ๆ˜ฅ้ฃŽๅ’Œๆฐ”:๐ŸŒธ๐Ÿ˜ผ๐ŸŒฌ๏ธ๐ŸŒธ", "ChengYu with Emoji"],
628
+ ],
629
+ inputs = [emoji_outputs, emoji2text_or_not],
630
+ #label = "๐Ÿ•Œ Examples"
631
+ )
632
 
633
  with gr.Row():
634
  with gr.Tab(label = "Download"):