Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files39 unmodified lines4041424344454639 unmodified linesprediction = model.predict(input_data).tolist()[0]# Return the prediction as a JSON responsereturn jsonify({'Prediction': {"Product_Id": Product_Id, "Sales": prediction}})# Define an endpoint to predict sales for a batch of products@sales_prediction_api.post('/v1/productbatch')39 unmodified lines4041424344454639 unmodified linesprediction = model.predict(input_data).tolist()[0]# Return the prediction as a JSON responsereturn jsonify({'Prediction': {"Product_Id": product_data['Product_Id'], "Sales": prediction}})# Define an endpoint to predict sales for a batch of products@sales_prediction_api.post('/v1/productbatch')
app.py+1-1