Spaces:
Paused
Paused
Add option to disable demo reset
Browse files
Agent.md
CHANGED
|
@@ -20,6 +20,12 @@ Choose the correct SDK based on the app type based on the codebase language:
|
|
| 20 |
- Never hardcode the token. Always read it from the environment.
|
| 21 |
- All monitoring and log‑streaming commands rely on `HF_TOKEN`.
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
### Required Files
|
| 24 |
- `Dockerfile` (or `app.py` for Gradio/Streamlit SDKs)
|
| 25 |
- `README.md` with Hugging Face YAML frontmatter:
|
|
|
|
| 20 |
- Never hardcode the token. Always read it from the environment.
|
| 21 |
- All monitoring and log‑streaming commands rely on `HF_TOKEN`.
|
| 22 |
|
| 23 |
+
### GitHub Sync (Persistence)
|
| 24 |
+
- The environment variable **`PAT_TOKEN`** must be set with a GitHub Personal Access Token.
|
| 25 |
+
- This token is used to sync the internal SQLite database (`travel.db`) to `https://github.com/JsonLord/TREK.git` on the `custom-data` branch.
|
| 26 |
+
- Sync runs on startup and every 6 hours.
|
| 27 |
+
- If the branch does not exist, the service will create it.
|
| 28 |
+
|
| 29 |
### Required Files
|
| 30 |
- `Dockerfile` (or `app.py` for Gradio/Streamlit SDKs)
|
| 31 |
- `README.md` with Hugging Face YAML frontmatter:
|