crazyai-kby commited on
Commit
afea2bf
1 Parent(s): 2e927d8
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -21,7 +21,9 @@ def run(file):
21
  image_request = requests.post(url, json=payload)
22
 
23
  out_img = image_request.json()['image']
24
- out_json = image_request.json()['graph']
 
 
25
 
26
  decode_img = base64.b64decode(out_img.split(',')[1])
27
  decode_img = np.frombuffer(decode_img, dtype=np.uint8)
 
21
  image_request = requests.post(url, json=payload)
22
 
23
  out_img = image_request.json()['image']
24
+ door_json = image_request.json()['doors']
25
+ wall_json = image_request.json()['walls']
26
+ out_json = {'doors': door_json, 'walls': wall_json}
27
 
28
  decode_img = base64.b64decode(out_img.split(',')[1])
29
  decode_img = np.frombuffer(decode_img, dtype=np.uint8)