File size: 484 Bytes
5aef741
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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)