Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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"):
|