Kritaphat commited on
Commit
155c1e5
·
1 Parent(s): 2ea4d01

Fix config in README.md

Browse files
Files changed (1) hide show
  1. README.md +22 -19
README.md CHANGED
@@ -1,20 +1,23 @@
1
- # Thai Snake Classifier (Space)
2
-
3
- Public demo for **kritaphatson/thai_snake_image_classifier**.
4
-
5
- ## How to run (on Hugging Face Spaces)
6
-
7
- 1. Create a **Gradio** Space and add these files: `app.py`, `requirements.txt`, `runtime.txt`, `README.md`.
8
- 2. (Optional) If you ever change the model repo id, set a Space Secret:
9
- - Key: `MODEL_ID`
10
- - Value: `your-username/your-model`
11
- 3. Restart the Space. Open the app and upload an image.
12
-
13
- ### Environment variables (optional)
14
- - `TOPK` (default `3`)
15
- - `NUM_THREADS` (default `1`)
16
-
17
- ## Notes
18
- - The app uses `AutoImageProcessor` and `AutoModelForImageClassification` and reads class names from `config.id2label`.
19
- - Keep inputs at typical training resolution; the processor handles resizing/normalization.
 
 
 
20
 
 
1
+ ---
2
+ title: Thai Snake Classifier
3
+ emoji: 🐍
4
+ colorFrom: green
5
+ colorTo: blue
6
+ sdk: gradio
7
+ python_version: "3.10"
8
+ app_file: app.py
9
+ fullWidth: true
10
+ pinned: true
11
+ short_description: Public demo of a Thai snake species classifier.
12
+ models:
13
+ - kritaphatson/thai_snake_image_classifier
14
+ tags:
15
+ - image-classification
16
+ - computer-vision
17
+ - snakes
18
+ - thailand
19
+ # Optional: speed up cold starts by pre-pulling your model at build time
20
+ preload_from_hub:
21
+ - kritaphatson/thai_snake_image_classifier
22
+ ---
23