Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ model_original = ClassificationModel(
|
|
| 14 |
)
|
| 15 |
|
| 16 |
def predict_emoticon(text):
|
| 17 |
-
return emoji.emojize(":" + CLASS_NAMES[
|
| 18 |
|
| 19 |
iface = gr.Interface(fn=predict_emoticon, inputs="text", outputs="text")
|
| 20 |
iface.launch()
|
|
|
|
| 14 |
)
|
| 15 |
|
| 16 |
def predict_emoticon(text):
|
| 17 |
+
return emoji.emojize(":" + CLASS_NAMES[model_original.predict([text])[0][0]] + ":")
|
| 18 |
|
| 19 |
iface = gr.Interface(fn=predict_emoticon, inputs="text", outputs="text")
|
| 20 |
iface.launch()
|