Skip to content

Commit 035330e

Browse files
committed
minor oopsies
1 parent 147aa59 commit 035330e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flask_server/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77

88
app = Flask(__name__)
99
_VERSION = 1
10-
@app.route('/v{}/ocr'.format(version), methods=["POST"])
10+
11+
@app.route('/v{}/ocr'.format(_VERSION), methods=["POST"])
1112
def ocr():
1213
try:
1314
url = request.form['image_url']
1415
output = process_image(url)
1516
return jsonify({"output": output})
1617
except KeyError:
17-
return jsonify({"error": "Did you mean to send data formatted: '{"image_url": "some_url"}'")
18+
return jsonify({"error": "Did you mean to send data formatted: {'image_url': 'some_url'}"})
1819

1920

2021
@app.errorhandler(500)

0 commit comments

Comments
 (0)