philschmid HF staff commited on
Commit
33c22ce
1 Parent(s): 8a132f7

preview was broken

Browse files
Files changed (1) hide show
  1. README.md +1 -2
README.md CHANGED
@@ -29,10 +29,8 @@ import json
29
  from typing import List
30
  import requests as r
31
  import base64
32
-
33
  ENDPOINT_URL = ""
34
  HF_TOKEN = ""
35
-
36
  def predict(path_to_image: str = None):
37
  with open(path_to_image, "rb") as i:
38
  b64 = base64.b64encode(i.read())
@@ -45,6 +43,7 @@ prediction = predict(
45
  path_to_image="palace.jpg"
46
  )
47
  ```
 
48
  expected output
49
  ```python
50
  ['buckingham palace with flower beds and red flowers']
 
29
  from typing import List
30
  import requests as r
31
  import base64
 
32
  ENDPOINT_URL = ""
33
  HF_TOKEN = ""
 
34
  def predict(path_to_image: str = None):
35
  with open(path_to_image, "rb") as i:
36
  b64 = base64.b64encode(i.read())
 
43
  path_to_image="palace.jpg"
44
  )
45
  ```
46
+
47
  expected output
48
  ```python
49
  ['buckingham palace with flower beds and red flowers']