Spaces:
Running
Running
example output
Browse files
app.py
CHANGED
@@ -88,13 +88,24 @@ input_textbox = gr.Textbox(
|
|
88 |
autofocus=True
|
89 |
)
|
90 |
slider = gr.Slider(1, 64, value=5, step=1, label="Top # Emoji", info="Choose between 1 and 64 top emojis to show")
|
|
|
91 |
gradio_app = gr.Interface(
|
92 |
predict,
|
93 |
[
|
94 |
input_textbox,
|
95 |
slider,
|
96 |
],
|
97 |
-
outputs=gr.Label(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
examples=[
|
99 |
["This is shit!", 5],
|
100 |
["You love hurting me, huh?", 5],
|
|
|
88 |
autofocus=True
|
89 |
)
|
90 |
slider = gr.Slider(1, 64, value=5, step=1, label="Top # Emoji", info="Choose between 1 and 64 top emojis to show")
|
91 |
+
|
92 |
gradio_app = gr.Interface(
|
93 |
predict,
|
94 |
[
|
95 |
input_textbox,
|
96 |
slider,
|
97 |
],
|
98 |
+
outputs=gr.Label(
|
99 |
+
label="Suitable Emoji",
|
100 |
+
# could not auto select example output
|
101 |
+
value={
|
102 |
+
"π§:headphones:" :0.10912112891674042,
|
103 |
+
"πΆ:notes:" :0.10073345899581909,
|
104 |
+
"π:ok_hand:" :0.05672002583742142,
|
105 |
+
"π:clap:" :0.0559493824839592,
|
106 |
+
"π:thumbsup:" :0.05157269537448883
|
107 |
+
}
|
108 |
+
),
|
109 |
examples=[
|
110 |
["This is shit!", 5],
|
111 |
["You love hurting me, huh?", 5],
|