Hey there,
What I’m trying to do:
I’m trying to publish a web app for Machine Learning Model by connecting anvil with jupyter notebook which will work after closing my jupyter notebook.
What I did:
I’ve created the uplink server connection, when my notebook is open it works, as soon as I close it an error occurs.
I really don’t know what to do, in every tutorial it just works
Here’s a part of my python code:
anvil.server.connect(“myserver”)
@anvil.server.callable
def predict_success(data):
new_data = pd.DataFrame(data, index=[0])
new_data_encoded = encoder.transform(new_data).toarray()
prediction = model.predict_proba(new_data_encoded)[:, 1]
return prediction[0]
And the part in my anvil code:
predict_success = anvil.server.call(‘predict_success’, data)
Can someone help me, please?
Thanks A LOT in advance!