DebK
New Contributor III

I have tried this one.

I am providing data as a list of single element.

data = ["visit www.bet365.com for a free trial"]

Tried with

predictions = loaded_model.predict(data)

and

predictions = loaded_model.predict(pd.DataFrame(data))