Spaces:
Configuration error
Configuration error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,15 +1,19 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
-
pinned:
|
| 10 |
-
short_description:
|
|
|
|
| 11 |
## First-Time Setup
|
| 12 |
-
|
| 13 |
-
``
|
| 14 |
-
python
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Mask Recommender
|
| 3 |
+
emoji: 🎭
|
| 4 |
+
colorFrom: pink
|
| 5 |
+
colorFrom: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 3.50.2
|
| 8 |
app_file: app.py
|
| 9 |
+
pinned: true
|
| 10 |
+
short_description: Recommends party masks based on facial features
|
| 11 |
+
|
| 12 |
## First-Time Setup
|
| 13 |
+
|
| 14 |
+
1. Add this to `app.py` (before demo.launch()):
|
| 15 |
+
```python
|
| 16 |
+
# Automatic model training if files don't exist
|
| 17 |
+
if not os.path.exists('model/random_forest.pkl'):
|
| 18 |
+
print("⚙️ Training model for the first time...")
|
| 19 |
+
os.system('python train_model.py')
|