fahad1995 commited on
Commit
7fd2308
·
verified ·
1 Parent(s): 21e0e83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,5 +1,9 @@
1
  import gradio as gr
2
  import pandas as pd
 
 
 
 
3
 
4
  # Function to predict price
5
  def predict_price(host_id, neighbourhood_group, room_type, price, reviews, calculated_host_listings_count, latitude, longitude):
 
1
  import gradio as gr
2
  import pandas as pd
3
+ import joblib # or import pickle if you used it to save your model
4
+
5
+ # Load your trained model
6
+ model = joblib.load('random_forest_model.pkl') # replace with your model path
7
 
8
  # Function to predict price
9
  def predict_price(host_id, neighbourhood_group, room_type, price, reviews, calculated_host_listings_count, latitude, longitude):