Spaces:
Sleeping
Sleeping
`Update .gitignore and src/pages/predict.py`
Browse files- .gitignore +9 -1
- src/model/.gitkeep +0 -0
- src/pages/predict.py +1 -1
.gitignore
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
# Virtual environment
|
| 2 |
.venv/
|
|
|
|
| 3 |
# Python cache files
|
| 4 |
__pycache__/
|
| 5 |
*.py[cod]
|
|
@@ -10,4 +11,11 @@ logs/
|
|
| 10 |
*.log
|
| 11 |
# token files
|
| 12 |
*.token
|
| 13 |
-
HUGGINGFACE_TOKEN.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Virtual environment
|
| 2 |
.venv/
|
| 3 |
+
EOF
|
| 4 |
# Python cache files
|
| 5 |
__pycache__/
|
| 6 |
*.py[cod]
|
|
|
|
| 11 |
*.log
|
| 12 |
# token files
|
| 13 |
*.token
|
| 14 |
+
HUGGINGFACE_TOKEN.txt
|
| 15 |
+
|
| 16 |
+
cat > .gitignore << EOF
|
| 17 |
+
# Model files
|
| 18 |
+
model/*.pkl
|
| 19 |
+
model/*.joblib
|
| 20 |
+
model/*.h5
|
| 21 |
+
model/*.onnx
|
src/model/.gitkeep
ADDED
|
File without changes
|
src/pages/predict.py
CHANGED
|
@@ -31,7 +31,7 @@ def load_data():
|
|
| 31 |
# URL GitHub
|
| 32 |
github_url = "https://raw.githubusercontent.com/fendy07/customer-prediction/refs/heads/main/data/customer_shopping_data.csv"
|
| 33 |
# Path lokal (fallback)
|
| 34 |
-
local_path = "data/customer_shopping_data.csv"
|
| 35 |
try:
|
| 36 |
retail = pd.read_csv(github_url)
|
| 37 |
print("✅ Data loaded from GitHub")
|
|
|
|
| 31 |
# URL GitHub
|
| 32 |
github_url = "https://raw.githubusercontent.com/fendy07/customer-prediction/refs/heads/main/data/customer_shopping_data.csv"
|
| 33 |
# Path lokal (fallback)
|
| 34 |
+
local_path = "src/data/customer_shopping_data.csv"
|
| 35 |
try:
|
| 36 |
retail = pd.read_csv(github_url)
|
| 37 |
print("✅ Data loaded from GitHub")
|