From 330a5610d448641a5db0e9a513188827b728fe20 Mon Sep 17 00:00:00 2001 From: Guilherme Werner Date: Tue, 10 Oct 2023 21:09:39 -0300 Subject: [PATCH] Update main.py --- api/main.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/api/main.py b/api/main.py index af4c804..48d4564 100644 --- a/api/main.py +++ b/api/main.py @@ -51,9 +51,6 @@ def caption_image(): @app.route('/caption-base64', methods=['POST']) def caption_image_base64(): data = request.get_json() - - print(data) - if 'image_base64' in data: image_base64 = re.sub('^data:image/.+;base64,', '', data['image_base64']) image_data = base64.b64decode(image_base64) @@ -65,7 +62,5 @@ def caption_image_base64(): else: return jsonify({"error": "Missing 'image_base64'"}), 400 - - if __name__ == '__main__': app.run(host='0.0.0.0', port=5885, debug=True)