cvpfus Codex commited on
Commit ·
57530a4
1
Parent(s): 6710ea1
Add example environment file
Browse filesCo-authored-by: Codex <codex@openai.com>
- .env.example +24 -0
- README.md +6 -0
.env.example
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Tiny Narrator local configuration.
|
| 2 |
+
# Copy this file to .env and fill in the values for the services you want to run live.
|
| 3 |
+
|
| 4 |
+
# App server
|
| 5 |
+
GRADIO_SERVER_NAME=0.0.0.0
|
| 6 |
+
GRADIO_SERVER_PORT=7860
|
| 7 |
+
PUBLIC_BASE_URL=http://localhost:7860
|
| 8 |
+
|
| 9 |
+
# Reader brain: llama.cpp OpenAI-compatible server
|
| 10 |
+
LLAMA_CPP_BASE_URL=http://localhost:8080/v1
|
| 11 |
+
LLAMA_CPP_MODEL=narrator-brain
|
| 12 |
+
|
| 13 |
+
# Speech: Kokoro is loaded locally when the kokoro and soundfile packages are installed.
|
| 14 |
+
# No API key is required.
|
| 15 |
+
|
| 16 |
+
# Image descriptions: OpenAI-compatible MiniCPM-V-4.6 endpoint
|
| 17 |
+
MINICPM_VISION_BASE_URL=
|
| 18 |
+
MINICPM_VISION_API_KEY=
|
| 19 |
+
MINICPM_VISION_MODEL=openbmb/MiniCPM-V-4.6
|
| 20 |
+
MINICPM_VISION_TIMEOUT_SECONDS=45
|
| 21 |
+
|
| 22 |
+
# Image generation: Modal-hosted FLUX.2 klein worker
|
| 23 |
+
KLEIN_MODAL_ENDPOINT=
|
| 24 |
+
KLEIN_MODAL_TIMEOUT_SECONDS=120
|
README.md
CHANGED
|
@@ -40,6 +40,12 @@ Install dependencies:
|
|
| 40 |
python -m pip install -r requirements.txt
|
| 41 |
```
|
| 42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
Start the llama.cpp reader-brain server:
|
| 44 |
|
| 45 |
```powershell
|
|
|
|
| 40 |
python -m pip install -r requirements.txt
|
| 41 |
```
|
| 42 |
|
| 43 |
+
Copy the example environment file if you want a local `.env` starting point:
|
| 44 |
+
|
| 45 |
+
```powershell
|
| 46 |
+
Copy-Item .env.example .env
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
Start the llama.cpp reader-brain server:
|
| 50 |
|
| 51 |
```powershell
|