Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -42,15 +42,7 @@ second_brain/
|
|
| 42 |
|
| 43 |
## Deploying to HuggingFace Spaces
|
| 44 |
|
| 45 |
-
###
|
| 46 |
-
- HuggingFace account with a Space already created (SDK: **Gradio**)
|
| 47 |
-
- Free Groq API key from [console.groq.com](https://console.groq.com)
|
| 48 |
-
|
| 49 |
-
---
|
| 50 |
-
|
| 51 |
-
### Step-by-step
|
| 52 |
-
|
| 53 |
-
#### 1. Add your Groq API key as a Secret
|
| 54 |
|
| 55 |
In your Space on HuggingFace:
|
| 56 |
|
|
@@ -64,78 +56,6 @@ In your Space on HuggingFace:
|
|
| 64 |
|
| 65 |
---
|
| 66 |
|
| 67 |
-
#### 2. Upload the files
|
| 68 |
-
|
| 69 |
-
You have two options:
|
| 70 |
-
|
| 71 |
-
**Option A — HuggingFace web UI (easiest)**
|
| 72 |
-
|
| 73 |
-
1. Open your Space → click **Files** tab
|
| 74 |
-
2. Upload these files maintaining the folder structure:
|
| 75 |
-
```
|
| 76 |
-
app.py
|
| 77 |
-
requirements.txt
|
| 78 |
-
core/__init__.py
|
| 79 |
-
core/database.py
|
| 80 |
-
core/ai_engine.py
|
| 81 |
-
core/styles.py
|
| 82 |
-
ui/__init__.py
|
| 83 |
-
```
|
| 84 |
-
3. The Space rebuilds automatically on each upload
|
| 85 |
-
|
| 86 |
-
**Option B — Git (recommended for updates)**
|
| 87 |
-
|
| 88 |
-
```bash
|
| 89 |
-
# Clone your Space repo
|
| 90 |
-
git clone https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME
|
| 91 |
-
cd YOUR_SPACE_NAME
|
| 92 |
-
|
| 93 |
-
# Copy project files in
|
| 94 |
-
cp -r /path/to/second_brain/* .
|
| 95 |
-
|
| 96 |
-
# Push
|
| 97 |
-
git add .
|
| 98 |
-
git commit -m "Initial deploy"
|
| 99 |
-
git push
|
| 100 |
-
```
|
| 101 |
-
|
| 102 |
-
---
|
| 103 |
-
|
| 104 |
-
#### 3. Wait for the build
|
| 105 |
-
|
| 106 |
-
- HuggingFace will install `requirements.txt` automatically
|
| 107 |
-
- First boot takes ~3–5 minutes (Whisper model downloads ~250MB)
|
| 108 |
-
- Watch the **Build logs** tab for progress
|
| 109 |
-
|
| 110 |
-
---
|
| 111 |
-
|
| 112 |
-
#### 4. Verify it's running
|
| 113 |
-
|
| 114 |
-
- Open the Space URL
|
| 115 |
-
- You should see the Sign In / Create Account screen
|
| 116 |
-
- Create an account, add some tasks, and test the AI features
|
| 117 |
-
|
| 118 |
-
---
|
| 119 |
-
|
| 120 |
-
## Running Locally
|
| 121 |
-
|
| 122 |
-
```bash
|
| 123 |
-
# Clone / download the project
|
| 124 |
-
cd second_brain
|
| 125 |
-
|
| 126 |
-
# Install dependencies
|
| 127 |
-
pip install -r requirements.txt
|
| 128 |
-
|
| 129 |
-
# Set your Groq API key
|
| 130 |
-
export GROQ_API_KEY="gsk_your_key_here"
|
| 131 |
-
|
| 132 |
-
# Run
|
| 133 |
-
python app.py
|
| 134 |
-
```
|
| 135 |
-
|
| 136 |
-
Open `http://localhost:7860` in your browser.
|
| 137 |
-
|
| 138 |
-
---
|
| 139 |
|
| 140 |
## Notes
|
| 141 |
|
|
|
|
| 42 |
|
| 43 |
## Deploying to HuggingFace Spaces
|
| 44 |
|
| 45 |
+
#### Add your Groq API key as a Secret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
In your Space on HuggingFace:
|
| 48 |
|
|
|
|
| 56 |
|
| 57 |
---
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
## Notes
|
| 61 |
|