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