Spaces:
Runtime error
Runtime error
ehristoforu
commited on
Commit
β’
93abcee
1
Parent(s):
b84c2d7
Update app.py
Browse files
app.py
CHANGED
@@ -7,11 +7,17 @@ with open("emoji_meanings.json", "r", encoding="utf-8") as json_file:
|
|
7 |
def get_emoji_meaning(emoji):
|
8 |
return emoji_meanings.get(emoji, "Emoticon meaning not found")
|
9 |
|
|
|
|
|
|
|
|
|
|
|
10 |
iface = gr.Interface(
|
11 |
fn=get_emoji_meaning,
|
12 |
inputs=gr.Textbox(label="Emoji Input", max_lines=1, interactive=True),
|
13 |
outputs=gr.Textbox(label="Emoji Meaning", max_lines=2, lines=1, show_copy_button=True, interactive=False),
|
14 |
title="Emoji Meaning",
|
|
|
15 |
theme="zenafey/prodia-web",
|
16 |
live=True,
|
17 |
)
|
|
|
7 |
def get_emoji_meaning(emoji):
|
8 |
return emoji_meanings.get(emoji, "Emoticon meaning not found")
|
9 |
|
10 |
+
examples = [
|
11 |
+
π,
|
12 |
+
πΊ,
|
13 |
+
]
|
14 |
+
|
15 |
iface = gr.Interface(
|
16 |
fn=get_emoji_meaning,
|
17 |
inputs=gr.Textbox(label="Emoji Input", max_lines=1, interactive=True),
|
18 |
outputs=gr.Textbox(label="Emoji Meaning", max_lines=2, lines=1, show_copy_button=True, interactive=False),
|
19 |
title="Emoji Meaning",
|
20 |
+
examples=examples,
|
21 |
theme="zenafey/prodia-web",
|
22 |
live=True,
|
23 |
)
|