Spaces:
Runtime error
Runtime error
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Color Name to RGB Predictor
|
| 2 |
|
| 3 |
Gradio web UI for predicting RGB colors from color names using FastText + BiLSTM.
|
|
@@ -19,22 +31,8 @@ python app.py
|
|
| 19 |
# Open http://localhost:7861
|
| 20 |
```
|
| 21 |
|
| 22 |
-
## Deploy to Hugging Face Spaces
|
| 23 |
-
1. Create new Space: https://huggingface.co/new-space
|
| 24 |
-
2. Select "Gradio" SDK
|
| 25 |
-
3. Choose "T4 GPU" (free tier) or "CPU basic"
|
| 26 |
-
4. Push files:
|
| 27 |
-
```bash
|
| 28 |
-
git lfs install
|
| 29 |
-
git init
|
| 30 |
-
git add app.py best_fasttext_model.ft test_best_color_model.pt requirements.txt README.md
|
| 31 |
-
git commit -m "Add color predictor"
|
| 32 |
-
git remote add origin https://huggingface.co/spaces/<username>/<space-name>
|
| 33 |
-
git push
|
| 34 |
-
```
|
| 35 |
-
|
| 36 |
## Files
|
| 37 |
- `app.py` - Gradio web application
|
| 38 |
- `best_fasttext_model.ft` - FastText embeddings (11,678 vocab)
|
| 39 |
-
- `
|
| 40 |
- `requirements.txt` - Python dependencies
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: "Text to Color Predictor"
|
| 3 |
+
emoji: "🎨"
|
| 4 |
+
colorFrom: "blue"
|
| 5 |
+
colorTo: "purple"
|
| 6 |
+
sdk: "gradio"
|
| 7 |
+
sdk_version: "6.16.0"
|
| 8 |
+
app_file: "app.py"
|
| 9 |
+
pinned: false
|
| 10 |
+
license: "mit"
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
# Color Name to RGB Predictor
|
| 14 |
|
| 15 |
Gradio web UI for predicting RGB colors from color names using FastText + BiLSTM.
|
|
|
|
| 31 |
# Open http://localhost:7861
|
| 32 |
```
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
## Files
|
| 35 |
- `app.py` - Gradio web application
|
| 36 |
- `best_fasttext_model.ft` - FastText embeddings (11,678 vocab)
|
| 37 |
+
- `best_color_model.pt` - BiLSTM model (epoch 34, val_loss=0.002357)
|
| 38 |
- `requirements.txt` - Python dependencies
|