radames commited on
Commit
f8d122a
1 Parent(s): ad85eed

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -36,7 +36,7 @@ def predict(path_to_image: str = None):
36
  b64 = base64.b64encode(i.read())
37
  payload = {"inputs": b64.decode("utf-8")}
38
  response = r.post(
39
- ENDPOINT_URL, headers={"Authorization": f"Bearer {HF_TOKEN}"}, json=payload
40
  )
41
  return response.json()
42
  prediction = predict(
 
36
  b64 = base64.b64encode(i.read())
37
  payload = {"inputs": b64.decode("utf-8")}
38
  response = r.post(
39
+ ENDPOINT_URL, headers={"X-Wait-For-Model": "true", "Authorization": f"Bearer {HF_TOKEN}"}, json=payload
40
  )
41
  return response.json()
42
  prediction = predict(