Skip to content

Commit c966ecf

Browse files
committed
remove prints from server
1 parent 9c35073 commit c966ecf

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

server/app.py

-13
Original file line numberDiff line numberDiff line change
@@ -170,31 +170,18 @@ def get_auto_annotations():
170170
raise ValueError("Invalid JSON data format: 'image_name' not found.")
171171

172172
image_annotations = []
173-
174173
base_url = request.host_url + "uploads/"
175-
176-
print(f"Base URL: {base_url}")
177174
image_url = base_url + image_name
178-
179-
print(f"Image URL: {image_url}")
180-
181175
image = load_image_from_url(image_url)
182-
183176
regions = sam_model.predict(image)
184-
185177
formatted_regions = format_regions_for_frontend(regions, image_url, image.shape[1], image.shape[0])
186-
187-
print(f"Regions: {formatted_regions}")
188-
189178
image_annotations.append(
190179
{
191180
"image_name": image_name,
192181
"image_source": image_url,
193182
"regions": formatted_regions,
194183
}
195184
)
196-
197-
print(f"Image Annotations: {image_annotations}")
198185
return jsonify(image_annotations), 200
199186

200187
except ValueError as ve:

0 commit comments

Comments
 (0)