KwabenaMufasa bright1 commited on
Commit
bd2df90
1 Parent(s): a126029

Updated file path for Grocery.csv (#2)

Browse files

- Updated file path for Grocery.csv (ba8ef09e8b29619581b94e723bc1c67bb40f8fcf)


Co-authored-by: Bright Eshun <[email protected]>

Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -14,12 +14,6 @@ import requests
14
 
15
 
16
 
17
-
18
- # get absolute path and goo two levels up
19
- DIRPATH = DIRPATH = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
20
- # get path for app data
21
- app_data_path =os.path.join(DIRPATH,'dev', 'datasets', 'app_data', 'Grocery.csv.crdownload')
22
-
23
  # set api endpoint
24
  URL = 'https://bright1-sales-forecasting-api.hf.space'
25
  API_ENDPOINT = '/predict'
@@ -31,7 +25,7 @@ st.set_page_config(page_title = "Prediction Forecasting", layout= "wide", initia
31
  st.title("Grocery Store Forecasting Prediction")
32
 
33
  # Load the saved data
34
- df = pd.read_csv(app_data_path)
35
 
36
  # src\app\images1.jpg
37
  image1 = Image.open('src/app/images1.jpg')
 
14
 
15
 
16
 
 
 
 
 
 
 
17
  # set api endpoint
18
  URL = 'https://bright1-sales-forecasting-api.hf.space'
19
  API_ENDPOINT = '/predict'
 
25
  st.title("Grocery Store Forecasting Prediction")
26
 
27
  # Load the saved data
28
+ df = pd.read_csv('Grocery.csv')
29
 
30
  # src\app\images1.jpg
31
  image1 = Image.open('src/app/images1.jpg')