Spaces:
Runtime error
Runtime error
from transformers import pipeline | |
pipe = pipeline("tabular-regression", model="jwan2021/autotrain-us-housing-prices-1771761511") | |
import json | |
import joblib | |
import pandas as pd | |
model = joblib.load('model.joblib') | |
config = json.load(open('config.json')) | |
features = config['features'] | |
data = pd.read_csv("HomeBuyerInfo.csv") | |
data = data[features] | |
data.columns = ["feat_" + str(col) for col in data.columns] | |
predictions = model.predict(data) # or model.predict_proba(data) | |