sergeipetrov commited on
Commit
6ec8056
1 Parent(s): 5581cd6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -18,8 +18,8 @@ def predict(path_to_image, prompt):
18
  with open(path_to_image, "rb") as i:
19
  b64 = base64.b64encode(i.read()).decode()
20
  payload = {
21
- "inputs": {
22
- "image": b64,
23
  "prompt": prompt
24
  }
25
  }
 
18
  with open(path_to_image, "rb") as i:
19
  b64 = base64.b64encode(i.read()).decode()
20
  payload = {
21
+ "inputs": b64,
22
+ "parameters": {
23
  "prompt": prompt
24
  }
25
  }