deeksonparlma
commited on
Commit
·
4dcb30c
1
Parent(s):
c83cbb4
reshape
Browse files
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(
|
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 |
|