Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- app.py +4 -4
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -9,7 +9,7 @@ from flask import Flask, request, jsonify # For creating the Flask API
|
|
| 9 |
superkart_api = Flask("SuperKart Sales Forecasting App") #Complete the code to define the name of the app
|
| 10 |
|
| 11 |
# Load the trained churn prediction model
|
| 12 |
-
model = joblib.load("Superkart_forecasting_model_v1_0.joblib")
|
| 13 |
|
| 14 |
# Define a route for the home page
|
| 15 |
@superkart_api.get('/')
|
|
@@ -31,9 +31,9 @@ def predict_sales():
|
|
| 31 |
'Store_Size': data['Store_Size'],
|
| 32 |
'Store_Location_City_Type': data['Store_Location_City_Type'],
|
| 33 |
'Store_Type': data['Store_Type'],
|
| 34 |
-
'
|
| 35 |
-
'
|
| 36 |
-
'
|
| 37 |
}
|
| 38 |
|
| 39 |
# Convert the extracted data into a DataFrame
|
|
|
|
| 9 |
superkart_api = Flask("SuperKart Sales Forecasting App") #Complete the code to define the name of the app
|
| 10 |
|
| 11 |
# Load the trained churn prediction model
|
| 12 |
+
model = joblib.load("Superkart_forecasting_model_v1_0.joblib")
|
| 13 |
|
| 14 |
# Define a route for the home page
|
| 15 |
@superkart_api.get('/')
|
|
|
|
| 31 |
'Store_Size': data['Store_Size'],
|
| 32 |
'Store_Location_City_Type': data['Store_Location_City_Type'],
|
| 33 |
'Store_Type': data['Store_Type'],
|
| 34 |
+
'Product_Id': data['Product_Id'],
|
| 35 |
+
'Store_Age': data['Store_Age'],
|
| 36 |
+
'Product_Type': data['Product_Type']
|
| 37 |
}
|
| 38 |
|
| 39 |
# Convert the extracted data into a DataFrame
|
requirements.txt
CHANGED
|
@@ -10,4 +10,4 @@ flask==2.2.2
|
|
| 10 |
gunicorn==20.1.0
|
| 11 |
requests==2.32.3
|
| 12 |
uvicorn[standard]
|
| 13 |
-
streamlit==1.
|
|
|
|
| 10 |
gunicorn==20.1.0
|
| 11 |
requests==2.32.3
|
| 12 |
uvicorn[standard]
|
| 13 |
+
streamlit==1.45.0
|