pszemraj commited on
Commit
a41953c
1 Parent(s): c57cce6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -19,6 +19,23 @@ should probably proofread and complete it, then remove this comment. -->
19
 
20
 
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
 
23
  try some of these:
24
 
 
19
 
20
 
21
 
22
+ usage:
23
+
24
+ ```py
25
+ from transformers import pipeline
26
+ from PIL import Image
27
+ import requests
28
+
29
+ pipe = pipeline(
30
+ "image-classification",
31
+ model="pszemraj/beit-large-patch16-512-film-shot-classifier",
32
+ )
33
+
34
+ url = "https://cdn-uploads.huggingface.co/production/uploads/60bccec062080d33f875cd0c/9YqYvv188ZccCMSzuv0KW.png"
35
+ image = Image.open(requests.get(url, stream=True).raw)
36
+ result = pipe(image)[0]
37
+ print(result)
38
+ ```
39
 
40
  try some of these:
41