tc043 Codex commited on
Commit
3eaf8cd
·
1 Parent(s): 2318a54

refactor: update startup command to use app.py instead of uvicorn and add HF_TOKEN note to documentation

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. README.md +4 -4
Dockerfile CHANGED
@@ -10,4 +10,4 @@ COPY . .
10
  ENV STEP_ZERO_MOCK=1
11
  EXPOSE 7860
12
 
13
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
10
  ENV STEP_ZERO_MOCK=1
11
  EXPOSE 7860
12
 
13
+ CMD ["python", "app.py"]
README.md CHANGED
@@ -23,10 +23,8 @@ The resulting fine-tuned model and synthetic dataset from this project have been
23
  ## Quick Start (Mock Mode)
24
 
25
  ```bash
26
- python3 -m venv .venv
27
- . .venv/bin/activate
28
  python -m pip install -r requirements.txt
29
- uvicorn app:app --host 0.0.0.0 --port 7860
30
  ```
31
 
32
  Open `http://localhost:7860`.
@@ -46,9 +44,11 @@ Then run:
46
  STEP_ZERO_MOCK=0 \
47
  NEMOTRON_MODEL_PATH=./models/step-zero-nemotron-finetuned.gguf \
48
  MINICPM_MODEL_PATH=./models/minicpm-3-4b.gguf \
49
- uvicorn app:app --host 0.0.0.0 --port 7860
50
  ```
51
 
 
 
52
  ## Modal Fine-Tuning Pipeline
53
 
54
  If you want to reproduce the Nemotron fine-tuning run:
 
23
  ## Quick Start (Mock Mode)
24
 
25
  ```bash
 
 
26
  python -m pip install -r requirements.txt
27
+ python app.py
28
  ```
29
 
30
  Open `http://localhost:7860`.
 
44
  STEP_ZERO_MOCK=0 \
45
  NEMOTRON_MODEL_PATH=./models/step-zero-nemotron-finetuned.gguf \
46
  MINICPM_MODEL_PATH=./models/minicpm-3-4b.gguf \
47
+ python app.py
48
  ```
49
 
50
+ > **Note on "Sharing is Caring" Badge:** If you wish to use the "Push to Hub" button to export your trace to Hugging Face, ensure you have exported your `HF_TOKEN` environment variable before running the app.
51
+
52
  ## Modal Fine-Tuning Pipeline
53
 
54
  If you want to reproduce the Nemotron fine-tuning run: