Abdulvajid's picture
Add application file
45bf2a0
raw
history blame contribute delete
336 Bytes
import gradio as gr
import pickle
with open('model.pkl','rb') as file:
model = pickle.load(file)
print('hai')
def model_predict(year):
prediction = model.predict([[year]])[0]
return prediction
app = gr.Interface(
fn=model_predict,
inputs=['number'],
outputs=['number'],
)
app.launch(share=False,debug=False)