sonuprasad23 commited on
Commit
66556ec
Β·
1 Parent(s): bb02ce5
Files changed (2) hide show
  1. DEPLOYMENT.md +20 -11
  2. README.md +11 -0
DEPLOYMENT.md CHANGED
@@ -4,27 +4,36 @@
4
  Your local files have been updated with the simple, proven login approach. The error you're seeing is from the old deployed version.
5
 
6
  ## πŸ“‹ Files Updated (Ready to Deploy)
 
7
  - `package.json`: Uses `puppeteer` (not puppeteer-core)
8
  - `index.js`: Simple login flow with networkidle2 navigation
9
- - `Dockerfile`: Simplified Puppeteer setup
10
  - `.gitignore`: Added to exclude node_modules
11
 
12
  ## πŸš€ Deployment Steps
13
 
14
- 1. **Push Updated Files to Hugging Face Spaces**
15
- - Upload all files from this directory to your HF Space
16
- - Make sure to overwrite the existing files
17
-
18
- 2. **Set Environment Variables**
19
- - Go to your Space settings
 
 
 
 
 
 
 
 
 
20
  - Add these secrets:
21
  - `LOGIN_EMAIL`: your Practice Fusion email
22
  - `LOGIN_PASSWORD`: your Practice Fusion password
23
 
24
- 3. **Restart the Space**
25
- - The new version will use the simple login approach
26
- - No more Chrome detection messages
27
- - No more navigation timeout errors
28
 
29
  ## πŸ” What Changed
30
  - ❌ Removed complex Chrome path detection
 
4
  Your local files have been updated with the simple, proven login approach. The error you're seeing is from the old deployed version.
5
 
6
  ## πŸ“‹ Files Updated (Ready to Deploy)
7
+ - `README.md`: βœ… Added required HF Spaces metadata header
8
  - `package.json`: Uses `puppeteer` (not puppeteer-core)
9
  - `index.js`: Simple login flow with networkidle2 navigation
10
+ - `Dockerfile`: Simplified Puppeteer setup with EXPOSE 7860
11
  - `.gitignore`: Added to exclude node_modules
12
 
13
  ## πŸš€ Deployment Steps
14
 
15
+ 1. **Create/Update Hugging Face Space**
16
+ - Go to https://huggingface.co/new-space
17
+ - Select "Docker" as the SDK
18
+ - Upload all files from this directory
19
+
20
+ 2. **Upload Files to Your Space**
21
+ - `README.md` (with metadata header)
22
+ - `package.json`
23
+ - `index.js`
24
+ - `Dockerfile`
25
+ - `public/index.html`
26
+ - `.gitignore`
27
+
28
+ 3. **Set Environment Variables**
29
+ - Go to your Space settings β†’ Variables
30
  - Add these secrets:
31
  - `LOGIN_EMAIL`: your Practice Fusion email
32
  - `LOGIN_PASSWORD`: your Practice Fusion password
33
 
34
+ 4. **Deploy**
35
+ - The Space will automatically build and start
36
+ - Access your dashboard at the Space URL
 
37
 
38
  ## πŸ” What Changed
39
  - ❌ Removed complex Chrome path detection
README.md CHANGED
@@ -1,3 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
1
  # Practice Fusion Automation for Hugging Face Spaces
2
 
3
  This project automates the Practice Fusion receipt processing workflow and is designed to run on Hugging Face Spaces.
 
1
+ ---
2
+ title: Practice Fusion Automator
3
+ emoji: πŸ₯
4
+ colorFrom: blue
5
+ colorTo: green
6
+ sdk: docker
7
+ sdk_version: "4.36.0"
8
+ app_file: index.js
9
+ pinned: false
10
+ ---
11
+
12
  # Practice Fusion Automation for Hugging Face Spaces
13
 
14
  This project automates the Practice Fusion receipt processing workflow and is designed to run on Hugging Face Spaces.