Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| import joblib | |
| model=joblib.load('model.joblib') | |
| input1=gr.Number(label='Fleece') | |
| input2=gr.Number(label='Silk') | |
| input3=gr.Number(label='Cotton') | |
| output=gr.Textbox(label='Output') | |
| def predict(fleece,silk,cotton): | |
| pred=model.predict([[fleece,silk,cotton]]) | |
| return pred[0] | |
| gr.Interface(fn=predict,inputs=[input1,input2,input3],outputs=output).launch() | |