Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,11 +7,14 @@ import numpy as np
|
|
| 7 |
import matplotlib.pyplot as plt
|
| 8 |
@st.cache_data
|
| 9 |
def load_data():
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
lead_time_data, inventory_data = load_data()
|
| 17 |
def calculate_safety_stock(demand_std, lead_time_mean, z_score=1.645):
|
|
|
|
| 7 |
import matplotlib.pyplot as plt
|
| 8 |
@st.cache_data
|
| 9 |
def load_data():
|
| 10 |
+
cwd = os.getcwd()
|
| 11 |
+
print(f"Current Directory: {cwd}")
|
| 12 |
+
print(f"Files in Directory: {os.listdir(cwd)}")
|
| 13 |
+
lead_time_path = os.path.join(os.getcwd(), "final_cleaned_lead_time_data.csv")
|
| 14 |
+
inventory_path = os.path.join(os.getcwd(), "inventory_data.csv")
|
| 15 |
+
lead_time_data = pd.read_csv(lead_time_path)
|
| 16 |
+
inventory_data = pd.read_csv(inventory_path)
|
| 17 |
+
return lead_time_data, inventory_data
|
| 18 |
|
| 19 |
lead_time_data, inventory_data = load_data()
|
| 20 |
def calculate_safety_stock(demand_std, lead_time_mean, z_score=1.645):
|