Spaces:
Sleeping
Sleeping
Commit ·
6f106f3
1
Parent(s): e790cb1
update readme, add requirements file
Browse files- README.md +26 -5
- requirements.txt +8 -0
README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 5.31.0
|
| 8 |
app_file: app.py
|
|
@@ -10,4 +10,25 @@ pinned: false
|
|
| 10 |
license: apache-2.0
|
| 11 |
---
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: BearsClassifier
|
| 3 |
+
emoji: 🔥
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: indigo
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 5.31.0
|
| 8 |
app_file: app.py
|
|
|
|
| 10 |
license: apache-2.0
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# 🐻 Bears Classifier
|
| 14 |
+
|
| 15 |
+
A tiny **fastai + Gradio** demo that recognises different species of bears from an image.
|
| 16 |
+
|
| 17 |
+
<p align="center">
|
| 18 |
+
<img src="screenshot.png" width="600" alt="Gradio UI screenshot">
|
| 19 |
+
</p>
|
| 20 |
+
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
## 🚀 Run Locally
|
| 24 |
+
|
| 25 |
+
```bash
|
| 26 |
+
git clone https://huggingface.co/spaces/williamj949/BearsClassifier
|
| 27 |
+
cd BearsClassifier
|
| 28 |
+
|
| 29 |
+
# create / activate a fresh env (recommended)
|
| 30 |
+
python -m venv venv
|
| 31 |
+
source venv/bin/activate # or .\venv\Scripts\activate on Windows
|
| 32 |
+
|
| 33 |
+
pip install -r requirements.txt
|
| 34 |
+
python app.py
|
requirements.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
gradio==3.50.2
|
| 2 |
+
fastai==2.7.13
|
| 3 |
+
torch==2.1.0
|
| 4 |
+
torchvision==0.16.0
|
| 5 |
+
pydantic==1.10.13
|
| 6 |
+
numpy<2.0
|
| 7 |
+
Pillow>=8.0.0
|
| 8 |
+
matplotlib>=3.5.0
|