neuralleap commited on
Commit
e8ee37e
·
verified ·
1 Parent(s): 03840bc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +12 -18
README.md CHANGED
@@ -1,20 +1,14 @@
1
- # OpenAI × Gradio Chat (HF Space)
 
 
 
 
 
 
 
 
 
 
2
 
3
- ## 🔧 Setup (Locally)
4
- 1) `pip install -r requirements.txt`
5
- 2) Export your key:
6
- - macOS/Linux: `export OPENAI_API_KEY=sk-...`
7
- - Windows (Powershell): `$env:OPENAI_API_KEY="sk-..."`
8
- 3) `python app.py` then open the printed URL.
9
 
10
- ## 🚀 Deploy to Hugging Face Spaces
11
- 1) Create a new **Space** (SDK: **Gradio**, Hardware: CPU is fine).
12
- 2) Add the three files in the repo: `app.py`, `requirements.txt`, `README.md`.
13
- 3) In the Space, go to **Settings → Secrets**, add:
14
- - `OPENAI_API_KEY = sk-...`
15
- 4) The app will auto-build and go live.
16
-
17
- ## 🧠 Notes
18
- - Uses OpenAI **Chat Completions** with streaming chunks.
19
- - You can change the model from the dropdown (e.g., `gpt-4o`, `gpt-4o-mini`, `gpt-5` if enabled for your account).
20
- - The `System prompt` lets you re-steer the assistant without redeploying.
 
1
+ ---
2
+ title: HealthBenchDemo
3
+ emoji: 🔥
4
+ colorFrom: indigo
5
+ colorTo: red
6
+ sdk: gradio
7
+ sdk_version: 5.42.0
8
+ app_file: app.py
9
+ pinned: false
10
+ license: mit
11
+ ---
12
 
13
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
14