josephrw commited on
Commit
617b59c
Β·
verified Β·
1 Parent(s): eade141

Upload CREATE_SPACE_STEPS.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. CREATE_SPACE_STEPS.md +89 -0
CREATE_SPACE_STEPS.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Create Hugging Face Space - Step by Step
2
+
3
+ ## Method: Web Interface (Recommended)
4
+
5
+ ### Step 1: Go to Hugging Face Spaces
6
+ Visit: https://huggingface.co/spaces
7
+
8
+ ### Step 2: Create New Space
9
+ 1. Click "Create new Space" button
10
+ 2. Fill in the form:
11
+ - **Owner**: Your username (will be auto-selected)
12
+ - **Space name**: `token-bazuka`
13
+ - **SDK**: Select "Flask"
14
+ - **License**: MIT
15
+ - **Space visibility**: Public (recommended)
16
+
17
+ ### Step 3: Click "Create Space"
18
+ This will create the space and redirect you to the space page.
19
+
20
+ ### Step 4: Upload Files
21
+ On the space page:
22
+ 1. Click the "Files" tab
23
+ 2. Click "Upload files"
24
+ 3. Upload these files from `/Users/alep/Downloads/02_AI_Agents/hf-token-bazuka/`:
25
+ - `app.py`
26
+ - `requirements.txt`
27
+ - `README.md`
28
+ - `templates/` folder (with `index.html` inside)
29
+
30
+ ### Step 5: Wait for Build
31
+ Hugging Face will automatically:
32
+ - Install dependencies from `requirements.txt`
33
+ - Build the Flask app
34
+ - Deploy the space
35
+
36
+ ### Step 6: Access Your Space
37
+ Once built, your space will be available at:
38
+ ```
39
+ https://huggingface.co/spaces/YOUR_USERNAME/token-bazuka
40
+ ```
41
+
42
+ ### Step 7: Update .env
43
+ Update `/Users/alep/Downloads/02_AI_Agents/.env` with your actual space URL:
44
+ ```
45
+ TOKEN_BAZUKA_URL=https://huggingface.co/spaces/YOUR_USERNAME/token-bazuka
46
+ ```
47
+
48
+ ## Files to Upload
49
+
50
+ From `hf-token-bazuka/` directory:
51
+ ```
52
+ hf-token-bazuka/
53
+ β”œβ”€β”€ app.py
54
+ β”œβ”€β”€ requirements.txt
55
+ β”œβ”€β”€ README.md
56
+ └── templates/
57
+ └── index.html
58
+ ```
59
+
60
+ ## Verification
61
+
62
+ After deployment, you should see:
63
+ - Dark-themed Token Bazuka UI
64
+ - Deploy Token tab with form
65
+ - System Status tab with live metrics
66
+ - Deployments tab with history
67
+ - About tab with documentation
68
+
69
+ ## Troubleshooting
70
+
71
+ If the build fails:
72
+ 1. Check the "Logs" tab for error messages
73
+ 2. Ensure all files are uploaded correctly
74
+ 3. Verify `requirements.txt` has correct dependencies
75
+ 4. Check `app.py` has no syntax errors
76
+
77
+ ## Alternative: Git Deployment
78
+
79
+ If you prefer Git:
80
+
81
+ ```bash
82
+ # After creating the space via web interface
83
+ git clone https://huggingface.co/spaces/YOUR_USERNAME/token-bazuka
84
+ cd token-bazuka
85
+ cp -r ../hf-token-bazuka/* .
86
+ git add .
87
+ git commit -m "Deploy Token Bazuka"
88
+ git push
89
+ ```