Update README.md
Browse files
README.md
CHANGED
|
@@ -100,10 +100,10 @@ git clone https://github.com/TRavi8688/Mood-Based-Music-Player
|
|
| 100 |
cd mood_detector
|
| 101 |
|
| 102 |
##🧪 How to Use (Transformers-based)
|
| 103 |
-
|
| 104 |
Follow these steps to preprocess an image and predict facial expression using the pre-trained Transformers-based model:
|
| 105 |
Python
|
| 106 |
-
|
| 107 |
from transformers import AutoModelForImageClassification, AutoImageProcessor
|
| 108 |
from PIL import Image
|
| 109 |
import torch
|
|
|
|
| 100 |
cd mood_detector
|
| 101 |
|
| 102 |
##🧪 How to Use (Transformers-based)
|
| 103 |
+
|
| 104 |
Follow these steps to preprocess an image and predict facial expression using the pre-trained Transformers-based model:
|
| 105 |
Python
|
| 106 |
+
```bash
|
| 107 |
from transformers import AutoModelForImageClassification, AutoImageProcessor
|
| 108 |
from PIL import Image
|
| 109 |
import torch
|