Disha252001 commited on
Commit
e2f90a2
·
verified ·
1 Parent(s): e4644ee

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -4,11 +4,11 @@ import joblib # For loading the serialized model
4
  import pandas as pd # For data manipulation
5
  from flask import Flask, request, jsonify # For creating the Flask API
6
 
7
- # Initialize the Flask application
8
- store_sales_api = Flask("SuperKart Store Sales Predictor")
 
 
9
 
10
- # Load the trained machine learning model
11
- model = joblib.load("store_sales_prediction_model_v1_0.joblib")
12
 
13
  # Define a route for the home page (GET request)
14
  @store_sales_api.post('/v1/sale')
 
4
  import pandas as pd # For data manipulation
5
  from flask import Flask, request, jsonify # For creating the Flask API
6
 
7
+ # Initialize the Flask app
8
+ app = Flask(__name__)
9
+
10
+ model = joblib.load("backend_files/superkart_sales_prediction_model_v1_0.joblib")
11
 
 
 
12
 
13
  # Define a route for the home page (GET request)
14
  @store_sales_api.post('/v1/sale')