Skip to content

Commit 52d9a34

Browse files
committed
Update api.py
1 parent f803fb8 commit 52d9a34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/api/api.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def mask_decode_to_image(encoding):
112112
# response = requests.get('http://0.0.0.0:8080/sam/sam-model')
113113
# print(f'\nsam/sam-model: {response.text}\n')
114114
response = requests.get('http://0.0.0.0:8080/sam/heartbeat')
115-
print(f'\nsam/sam-model: {response.text}\n')
115+
print(f'\nsam/heartbeat: {response.text}\n')
116116
if "Success" in response.text:
117117
# print(f'\nsam/heartbeat: {response.text}\n')
118118
# image = encode_pil_to_base64(image)
@@ -137,6 +137,7 @@ def mask_decode_to_image(encoding):
137137
else:
138138
print(f'!!!! Error: SAM heartbeat lost!')
139139
except Exception as err:
140+
print(f'!!!! Error: SAM exception {err}!!!!')
140141
pass
141142

142143
return image

0 commit comments

Comments
 (0)