pinkieseb commited on
Commit
234fb3d
1 Parent(s): 9141ade

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +5 -3
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- pipeline_tag: image-regression
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
- regressor = pipeline("image-regression", model="pinkieseb/carb_regression_model")
15
- result = regressor("path/to/image.jpg")
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.