Update app.py
Browse files
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):
|