Spaces:
Build error
Build error
Commit Β·
66556ec
1
Parent(s): bb02ce5
changes
Browse files- DEPLOYMENT.md +20 -11
- 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. **
|
| 15 |
-
-
|
| 16 |
-
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
- Add these secrets:
|
| 21 |
- `LOGIN_EMAIL`: your Practice Fusion email
|
| 22 |
- `LOGIN_PASSWORD`: your Practice Fusion password
|
| 23 |
|
| 24 |
-
|
| 25 |
-
- The
|
| 26 |
-
-
|
| 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.
|