deeksonparlma commited on
Commit ·
4dcb30c
1
Parent(s): c83cbb4
reshape
Browse files34 unmodified lines353637383940414234 unmodified lines# reshape the input to 2D# convert the input to a numpy array# return model.predict( np.array(inp).reshape(1, -1) )return model.predict( np.array(inp, dtype=float).reshape(1, -1) )[0]34 unmodified lines3536373839404134 unmodified lines# reshape the input to 2D# convert the input to a numpy array# return model.predict( np.array(inp).reshape(1, -1) )return model.predict([inp])
app.py+1-2