sga123 commited on
Commit
9146e82
·
verified ·
1 Parent(s): e94eb3e

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,10 +2,10 @@ import joblib
2
  import pandas as pd
3
  from flask import Flask, request, jsonify
4
  # Initialize Flask app
5
- supermarket_api = Flask("Supermarket Product Price Predictor")
6
  model = joblib.load("D:/Machine_Learning_Neural_Nets_Course/SuperKart/backend_files/predict_product_price_v1_0.joblib")
7
 
8
  # Define a route for the home page
9
- @supermarket_api.get('/')
10
  def home():
11
  return "Welcome to the Supermarket Product Price Predictor!"
 
2
  import pandas as pd
3
  from flask import Flask, request, jsonify
4
  # Initialize Flask app
5
+ app = Flask("Supermarket Product Price Predictor")
6
  model = joblib.load("D:/Machine_Learning_Neural_Nets_Course/SuperKart/backend_files/predict_product_price_v1_0.joblib")
7
 
8
  # Define a route for the home page
9
+ @sapp.get('/')
10
  def home():
11
  return "Welcome to the Supermarket Product Price Predictor!"