deeksonparlma commited on
Commit
4dcb30c
·
1 Parent(s): c83cbb4
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -35,8 +35,7 @@ def classify_text(inp):
35
  # reshape the input to 2D
36
  # convert the input to a numpy array
37
  # return model.predict( np.array(inp).reshape(1, -1) )
38
- return model.predict( np.array(inp, dtype=float).reshape(1, -1) )[0]
39
-
40
 
41
 
42
 
 
35
  # reshape the input to 2D
36
  # convert the input to a numpy array
37
  # return model.predict( np.array(inp).reshape(1, -1) )
38
+ return model.predict([inp])
 
39
 
40
 
41