Skip to content

Commit

Permalink
/ use in unix, \ use in windows, it's so annoying
Browse files Browse the repository at this point in the history
  • Loading branch information
creeponsky committed Apr 9, 2023
1 parent 09119b5 commit ba74b47
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ def process_points():
utils.check_folder(save_path)
output_image_path, mask_image_path = process_image(image_path, mask_utils, input_point, input_label, save_path)

# / use in unix, \ use in windows, it's so annoying
output_image_path = output_image_path.replace('\\', '/')

output_image_path = output_image_path.split('output/')[1]


return jsonify({
'output_image_path': output_image_path,
Expand Down

0 comments on commit ba74b47

Please sign in to comment.