Spaces:
Running
Running
default text; description on ignored text; autofocus
Browse files
app.py
CHANGED
|
@@ -62,8 +62,10 @@ def predict(deepmoji_analysis, emoji_count):
|
|
| 62 |
|
| 63 |
input_textbox = gr.Textbox(
|
| 64 |
label="English Text",
|
|
|
|
| 65 |
lines=1,
|
| 66 |
-
value=""
|
|
|
|
| 67 |
)
|
| 68 |
slider = gr.Slider(1, 64, value=5, step=1, label="Top # Emoji", info="Choose between 1 and 64 top emojis to show")
|
| 69 |
|
|
@@ -75,13 +77,12 @@ gradio_app = gr.Interface(
|
|
| 75 |
],
|
| 76 |
outputs=gr.Label(label="Suitable Emoji"),
|
| 77 |
examples=[
|
|
|
|
| 78 |
["You love hurting me, huh?", 5],
|
| 79 |
["I know good movies, this ain't one", 5],
|
| 80 |
["It was fun, but I'm not going to miss you", 5],
|
| 81 |
["My flight is delayed.. amazing.", 5],
|
| 82 |
["What is happening to me??", 5],
|
| 83 |
-
["This is the shit!", 5],
|
| 84 |
-
["This is shit!", 5],
|
| 85 |
],
|
| 86 |
cache_examples=True,
|
| 87 |
live=True,
|
|
|
|
| 62 |
|
| 63 |
input_textbox = gr.Textbox(
|
| 64 |
label="English Text",
|
| 65 |
+
info="ignores: emojis, URLs, @",
|
| 66 |
lines=1,
|
| 67 |
+
value="This is the shit!",
|
| 68 |
+
autofocus=True
|
| 69 |
)
|
| 70 |
slider = gr.Slider(1, 64, value=5, step=1, label="Top # Emoji", info="Choose between 1 and 64 top emojis to show")
|
| 71 |
|
|
|
|
| 77 |
],
|
| 78 |
outputs=gr.Label(label="Suitable Emoji"),
|
| 79 |
examples=[
|
| 80 |
+
["This is shit!", 5],
|
| 81 |
["You love hurting me, huh?", 5],
|
| 82 |
["I know good movies, this ain't one", 5],
|
| 83 |
["It was fun, but I'm not going to miss you", 5],
|
| 84 |
["My flight is delayed.. amazing.", 5],
|
| 85 |
["What is happening to me??", 5],
|
|
|
|
|
|
|
| 86 |
],
|
| 87 |
cache_examples=True,
|
| 88 |
live=True,
|