Downloads · 30 days
0
Parveenshakya969/My_Rent_Predictor
My_Rent_Predictor is a machine learning model from Parveenshakya969. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
import gradio as gr import joblib import spaces
Downloads · 30 days
0
Access
Public
Updated Jul 10, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 62%
From the Hugging Face model README
import gradio as gr import joblib import spaces
deployed_lr = joblib.load('my_first_ml_model.pkl')
@spaces.GPU def predict_rent(size_of_prop): # The model expects a 2D array: [[size]] prediction = deployed_lr.predict([[size_of_prop]]) # Extract the single prediction value and format it return f"Estimated Rent: {prediction[0]:.2f}"
interface = gr.Interface( fn=predict_rent, inputs=gr.Number(label="Please Enter the Size of Your Property for rent"), outputs=gr.Text(label="Predicted Rent"), title="Property Rent Predictor", description="Enter the property size to get a rent estimate powered by Machine Learning." )
if name == "main": interface.launch()