tonyassi commited on
Commit
a7a741b
1 Parent(s): de7fd94

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -0
README.md CHANGED
@@ -17,6 +17,15 @@ should probably proofread and complete it, then remove this comment. -->
17
  This model predicts what decade clothing is from. It takes an image and outputs one of the following labels:
18
  **1910s, 1920s, 1930s, 1940s, 1950s, 1960s, 1970s, 1980s, 1990s, 2000s**
19
 
 
 
 
 
 
 
 
 
 
20
 
21
  ## Model description
22
  This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k).
 
17
  This model predicts what decade clothing is from. It takes an image and outputs one of the following labels:
18
  **1910s, 1920s, 1930s, 1940s, 1950s, 1960s, 1970s, 1980s, 1990s, 2000s**
19
 
20
+ ### How to use
21
+ ```python
22
+ from transformers import pipeline
23
+
24
+ pipe = pipeline("image-classification", model="tonyassi/fashion-clothing-decade")
25
+ result = pipe('image.png')
26
+
27
+ print(result)
28
+ ```
29
 
30
  ## Model description
31
  This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k).