def submit_form(): image_url = request.form["image_url"] return jsonify(response=recognize_image(image_url))
def api_response(image_url): image_url = urllib.unquote_plus(image_url) return jsonify(response=recognize_image(image_url))