Add contributor setup script for VS Code workflow
Browse files
README.md
CHANGED
|
@@ -128,6 +128,38 @@ pip install -r requirements.txt
|
|
| 128 |
python app.py
|
| 129 |
```
|
| 130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
## Deploy ke Hugging Face Spaces
|
| 132 |
|
| 133 |
Upload:
|
|
|
|
| 128 |
python app.py
|
| 129 |
```
|
| 130 |
|
| 131 |
+
## Setup Kontributor Windows/VS Code
|
| 132 |
+
|
| 133 |
+
Pastikan teman kelompok sudah:
|
| 134 |
+
- menjadi member organization `KLP2-PCD` dengan akses write,
|
| 135 |
+
- punya Git for Windows,
|
| 136 |
+
- punya Python 3.10+,
|
| 137 |
+
- punya token Hugging Face dengan permission write ke `KLP2-PCD/KLP2`.
|
| 138 |
+
|
| 139 |
+
Jalankan dari PowerShell:
|
| 140 |
+
|
| 141 |
+
```powershell
|
| 142 |
+
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
|
| 143 |
+
.\setup_contributor.ps1
|
| 144 |
+
```
|
| 145 |
+
|
| 146 |
+
Script akan:
|
| 147 |
+
- clone repo `KLP2-PCD/KLP2`,
|
| 148 |
+
- membuat `.venv`,
|
| 149 |
+
- install dependency dari `requirements.txt`,
|
| 150 |
+
- validasi `app.py`,
|
| 151 |
+
- set remote agar bisa `git push`,
|
| 152 |
+
- membuka folder di VS Code jika command `code` tersedia.
|
| 153 |
+
|
| 154 |
+
Alur kerja setelah edit:
|
| 155 |
+
|
| 156 |
+
```powershell
|
| 157 |
+
git status
|
| 158 |
+
git add app.py README.md CHANGELOG.md requirements.txt
|
| 159 |
+
git commit -m "update fitur"
|
| 160 |
+
git push origin main
|
| 161 |
+
```
|
| 162 |
+
|
| 163 |
## Deploy ke Hugging Face Spaces
|
| 164 |
|
| 165 |
Upload:
|