Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
pipeline_tag: image-
|
| 3 |
---
|
| 4 |
|
| 5 |
# Carb Regression Model
|
|
@@ -11,7 +11,9 @@ This model predicts carbohydrate content from food images.
|
|
| 11 |
```python
|
| 12 |
from transformers import pipeline
|
| 13 |
|
| 14 |
-
|
| 15 |
-
result =
|
| 16 |
print(result)
|
| 17 |
```
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
pipeline_tag: image-classification
|
| 3 |
---
|
| 4 |
|
| 5 |
# Carb Regression Model
|
|
|
|
| 11 |
```python
|
| 12 |
from transformers import pipeline
|
| 13 |
|
| 14 |
+
classifier = pipeline("image-classification", model="pinkieseb/carb_regression_model")
|
| 15 |
+
result = classifier("path/to/image.jpg")
|
| 16 |
print(result)
|
| 17 |
```
|
| 18 |
+
|
| 19 |
+
Note: Although this model performs regression, we're using the "image-classification" pipeline as it's the closest standard pipeline for our task. The output will be a single value representing the predicted carbohydrate content.
|