File size: 251 Bytes
65afea9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
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()
|