xiongjie commited on
Commit
8baf8a0
1 Parent(s): 4d59a38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ model_original = ClassificationModel(
14
  )
15
 
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()
 
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()