Spaces:
Sleeping
Sleeping
Selva Neyas U commited on
Commit Β·
50f6fa6
1
Parent(s): ece7703
Add support for .pptx files in Git LFS and enhance Hugging Face access token documentation
Browse files- .gitattributes +1 -0
- Docs/Note.md +62 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.pptx filter=lfs diff=lfs merge=lfs -text
|
Docs/Note.md
CHANGED
|
@@ -59,3 +59,65 @@ Now everything is clean:
|
|
| 59 |
* `origin` = GitHub β
|
| 60 |
* `hf` = Hugging Face β
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
* `origin` = GitHub β
|
| 60 |
* `hf` = Hugging Face β
|
| 61 |
|
| 62 |
+
---
|
| 63 |
+
|
| 64 |
+
### π Option 1: **Access Token (Recommended & Easiest)**
|
| 65 |
+
|
| 66 |
+
### π Option 2: **SSH Key (Advanced, one-time setup)**
|
| 67 |
+
|
| 68 |
+
---
|
| 69 |
+
|
| 70 |
+
## β
Let's go with **Option 1: Use a Hugging Face Access Token**
|
| 71 |
+
|
| 72 |
+
### π§ Step-by-Step:
|
| 73 |
+
|
| 74 |
+
#### β
1. **Generate an Access Token**
|
| 75 |
+
|
| 76 |
+
* Go to: [https://huggingface.co/settings/tokens](https://huggingface.co/settings/tokens)
|
| 77 |
+
* Click **βNew tokenβ**
|
| 78 |
+
|
| 79 |
+
* Name: `Git Push`
|
| 80 |
+
* Role: `Write` or `Admin`
|
| 81 |
+
* Copy the token (keep it safe like a password!)
|
| 82 |
+
|
| 83 |
+
---
|
| 84 |
+
|
| 85 |
+
#### β
2. **Push using the Access Token**
|
| 86 |
+
|
| 87 |
+
Use this format when pushing:
|
| 88 |
+
|
| 89 |
+
```bash
|
| 90 |
+
git push https://<token>@huggingface.co/spaces/selvaneyas/Edu-MentorAI
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
π For example:
|
| 94 |
+
|
| 95 |
+
```bash
|
| 96 |
+
git push https://hf_A1b2C3d4e5f6G7h8I9J0@huggingface.co/spaces/selvaneyas/Edu-MentorAI
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
> Replace `hf_A1b2C3...` with your **real token**
|
| 100 |
+
|
| 101 |
+
---
|
| 102 |
+
|
| 103 |
+
### β
Or set it once using `git remote set-url`:
|
| 104 |
+
|
| 105 |
+
```bash
|
| 106 |
+
git remote set-url hf https://<your-token>@huggingface.co/spaces/selvaneyas/Edu-MentorAI
|
| 107 |
+
```
|
| 108 |
+
|
| 109 |
+
Then push as usual:
|
| 110 |
+
|
| 111 |
+
```bash
|
| 112 |
+
git push hf main
|
| 113 |
+
```
|
| 114 |
+
|
| 115 |
+
---
|
| 116 |
+
|
| 117 |
+
## π Option 2 (Advanced): SSH Setup (Optional)
|
| 118 |
+
|
| 119 |
+
If you prefer SSH instead of tokens, I can guide you on setting up an SSH key and linking it with Hugging Face.
|
| 120 |
+
|
| 121 |
+
---
|
| 122 |
+
|
| 123 |
+
|