Spaces:
Running
Running
title;cache_examples;label component
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ gradio_app = gr.Interface(
|
|
| 73 |
input_textbox,
|
| 74 |
slider,
|
| 75 |
],
|
| 76 |
-
outputs=
|
| 77 |
examples=[
|
| 78 |
["You love hurting me, huh?", 5],
|
| 79 |
["I know good movies, this ain't one", 5],
|
|
@@ -83,7 +83,9 @@ gradio_app = gr.Interface(
|
|
| 83 |
["This is the shit!", 5],
|
| 84 |
["This is shit!", 5],
|
| 85 |
],
|
| 86 |
-
|
|
|
|
|
|
|
| 87 |
)
|
| 88 |
|
| 89 |
if __name__ == "__main__":
|
|
|
|
| 73 |
input_textbox,
|
| 74 |
slider,
|
| 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],
|
|
|
|
| 83 |
["This is the shit!", 5],
|
| 84 |
["This is shit!", 5],
|
| 85 |
],
|
| 86 |
+
cache_examples=True,
|
| 87 |
+
live=True,
|
| 88 |
+
title="🎭 DeepMoji 🎭"
|
| 89 |
)
|
| 90 |
|
| 91 |
if __name__ == "__main__":
|