itsjarvis commited on
Commit
6da28b4
·
verified ·
1 Parent(s): b670df2

Upload deploy.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. deploy.sh +36 -0
deploy.sh ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Hugging Face Space Deployment Script
3
+ # ====================================
4
+
5
+ echo "[DEPLOY] Starting Hugging Face Space deployment..."
6
+
7
+ # Check if we're in a git repository
8
+ if [ ! -d ".git" ]; then
9
+ echo "Error: Not in a git repository. Please clone your HF space first."
10
+ exit 1
11
+ fi
12
+
13
+ # Copy backend files (run from project root)
14
+ echo "[DEPLOY] Copying backend files..."
15
+ if [ -d "../backend_files" ]; then
16
+ cp -r ../backend_files/* .
17
+ echo "✅ Backend files copied successfully"
18
+ else
19
+ echo "Error: backend_files directory not found"
20
+ exit 1
21
+ fi
22
+
23
+ # Stage all files
24
+ echo "[DEPLOY] Staging files..."
25
+ git add .
26
+
27
+ # Commit changes
28
+ echo "[DEPLOY] Committing changes..."
29
+ git commit -m "Deploy SuperKart Sales Forecasting API v1.0"
30
+
31
+ # Push to Hugging Face
32
+ echo "[DEPLOY] Pushing to Hugging Face..."
33
+ git push origin main
34
+
35
+ echo "[DEPLOY] Deployment complete! Check your space for build status."
36
+ echo "[INFO] Your API will be available at: https://yourusername-spacename.hf.space"