Spaces:
Sleeping
Sleeping
import pickle | |
import gradio as gr | |
with open("Model_Pickle",'rb') as f: | |
mp=pickle.load(f) | |
def prediction(height): | |
conv_height=int(height) | |
result=mp.predict([[conv_height]]) | |
final_result=int(result[0]) | |
return final_result | |
interface=gr.Interface(fn=prediction,inputs=[gr.inputs.Textbox(lines=2,placeholder=("Enter Your Height in Inches"),label="Weight Prediction")],outputs=[gr.outputs.Textbox(label="Your Weight in Pounds")],enable_queu=True) | |
interface.launch(debug=True) |