import gradio as gr import joblib model=joblib.load('model.joblib') input=gr.Numbers('Input') output=gr.Textbox('Output') def predict(fi): pred=model.predict(fi) return pred gr.Tnterface(fn=predict,inputs=input,outputs=output).lunch()