This commit is contained in:
2026-04-24 03:39:25 +09:00
parent 53e9908167
commit c4d8c8145a
37 changed files with 1887 additions and 3287 deletions

19
model/predict.py Normal file
View File

@@ -0,0 +1,19 @@
import joblib
import pandas as pd
import sys
import json
def predict():
model_path = sys.argv[1]
features_json = sys.stdin.read()
features_dict = json.loads(features_json)
df = pd.DataFrame([features_dict])
model = joblib.load(model_path)
prediction = model.predict(df)
print(prediction[0])
if __name__ == "__main__":
predict()