dilsound commited on
Commit
31dace8
·
verified ·
1 Parent(s): a60e209

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +4 -4
  2. 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
- 'Product_Id_char': data['Product_Id_char'],
35
- 'Store_Age_Years': data['Store_Age_Years'],
36
- 'Product_Type_Category': data['Product_Type_Category']
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.43.2
 
10
  gunicorn==20.1.0
11
  requests==2.32.3
12
  uvicorn[standard]
13
+ streamlit==1.45.0