Update README.md
Browse files
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(
|