Spaces:
Runtime error
Runtime error
File size: 476 Bytes
61f2332 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
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)
|