Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def home():
|
|
| 14 |
return "Welcome to the Sales Revenue Prediction API!"
|
| 15 |
|
| 16 |
# Define an endpoint to predict churn for a single customer
|
| 17 |
-
@SalesRevenue_predictor_api.route('/v1/Sales_prediction', methods=['POST'
|
| 18 |
def predict_revenue():
|
| 19 |
# Get JSON data from the request
|
| 20 |
product_data = request.get_json()
|
|
|
|
| 14 |
return "Welcome to the Sales Revenue Prediction API!"
|
| 15 |
|
| 16 |
# Define an endpoint to predict churn for a single customer
|
| 17 |
+
@SalesRevenue_predictor_api.route('/v1/Sales_prediction', methods=['POST'])
|
| 18 |
def predict_revenue():
|
| 19 |
# Get JSON data from the request
|
| 20 |
product_data = request.get_json()
|