Andrew Tanny Liem commited on
Commit
ef5c937
·
1 Parent(s): 20c453a

fix README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -3
README.md CHANGED
@@ -20,8 +20,10 @@ Run Locally
20
  1. Python 3.9+
21
  2. Install deps:
22
  pip install -r requirements.txt
23
- 3. (Optional) Choose a model (default is a HF-hosted chat model):
24
- export HF_MODEL=meta-llama/Meta-Llama-3-8B-Instruct
 
 
25
  4. Start the app:
26
  python app.py
27
  5. Click “Sign in” to grant the app an access token for the Hugging Face Inference API.
@@ -30,7 +32,9 @@ Deploy on Hugging Face Spaces
30
  1. Create a new Space (SDK: Gradio).
31
  2. Add files (app.py, requirements.txt, README.md). Push via Git.
32
  3. Users click “Sign in” to authorize Inference API use.
33
- 4. (Optional) Set `HF_MODEL` in Space Variables to switch models. Prefer HF-hosted chat models (e.g., `meta-llama/Meta-Llama-3-8B-Instruct`, `HuggingFaceH4/zephyr-7b-beta`) to avoid provider permission issues.
 
 
34
 
35
  Persona & Scope
36
  - Persona: Maya is friendly, busy, non‑technical; answers concretely; asks clarifying questions when prompts are vague.
 
20
  1. Python 3.9+
21
  2. Install deps:
22
  pip install -r requirements.txt
23
+ 3. (Optional) Model selection (default uses GPT‑OSS via Together):
24
+ export HF_MODEL=openai/gpt-oss-20b
25
+ # If using GPT‑OSS/Together, set provider key:
26
+ export TOGETHER_API_KEY=xxxxxxxxxxxxxxxx
27
  4. Start the app:
28
  python app.py
29
  5. Click “Sign in” to grant the app an access token for the Hugging Face Inference API.
 
32
  1. Create a new Space (SDK: Gradio).
33
  2. Add files (app.py, requirements.txt, README.md). Push via Git.
34
  3. Users click “Sign in” to authorize Inference API use.
35
+ 4. (Optional) Set Space Variables:
36
+ - `HF_MODEL` (e.g., `openai/gpt-oss-20b`)
37
+ - `TOGETHER_API_KEY` (required for GPT‑OSS via Together)
38
 
39
  Persona & Scope
40
  - Persona: Maya is friendly, busy, non‑technical; answers concretely; asks clarifying questions when prompts are vague.