bluestpanda commited on
Commit
a4e7f12
·
1 Parent(s): ad0f8d2

Add deployment instructions for fresh setup

Browse files
Files changed (1) hide show
  1. DEPLOYMENT_INSTRUCTIONS.md +60 -0
DEPLOYMENT_INSTRUCTIONS.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Fresh Deployment Instructions
2
+
3
+ ## Step 1: Delete Current Space
4
+
5
+ 1. Go to your Space: https://huggingface.co/spaces/Khamad/json-field-analyzer
6
+ 2. Click the **"Settings"** button (gear icon in top right)
7
+ 3. Scroll to the **very bottom** of the settings page
8
+ 4. Click **"Delete this space"** button
9
+ 5. Confirm the deletion by typing the Space name
10
+ 6. Click **"Delete"**
11
+
12
+ ## Step 2: Create New Space
13
+
14
+ 1. Go to: https://huggingface.co/spaces
15
+ 2. Click **"Create new space"** button (top right)
16
+ 3. Fill in the form:
17
+ - **Space name**: `json-field-analyzer`
18
+ - **SDK**: Select **"Streamlit"** (IMPORTANT!)
19
+ - **Hardware**: CPU Basic (free)
20
+ 4. Click **"Create space"**
21
+
22
+ ## Step 3: Connect Your Repository
23
+
24
+ After creating the space, click **"Files and versions"** tab, then:
25
+
26
+ 1. Click the **"Add file"** dropdown
27
+ 2. Select **"Upload files"**
28
+ 3. Upload these files from your local directory:
29
+ - `app.py`
30
+ - `requirements.txt`
31
+ - `README.md`
32
+ - `.gitignore`
33
+
34
+ OR use git (recommended):
35
+
36
+ ```bash
37
+ # Your repo should already be set up
38
+ # If not, run these commands:
39
+ cd "/Users/mac/Continuing Education/json-field-analyzer"
40
+ git remote -v # Should show your HF repo
41
+ ```
42
+
43
+ If it shows the repo correctly, the files should sync automatically!
44
+
45
+ ## Step 4: Wait for Build
46
+
47
+ - The Space will automatically start building
48
+ - Wait 2-3 minutes for it to complete
49
+ - You should see green checkmark when ready
50
+
51
+ ## Step 5: Test
52
+
53
+ 1. Click on the app URL
54
+ 2. You should see "🆓 Running on Hugging Face - FREE Hugging Face AI model available!"
55
+ 3. Try uploading a JSON file and analyzing it
56
+
57
+ ## ✅ Success!
58
+
59
+ If you see the Streamlit interface with the file uploader, it worked!
60
+