From a0bd30c8d6ac53c42f161191477605efd3133e0e Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 25 Jul 2024 12:49:36 +0000 Subject: [PATCH] modificaiton pour flask --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 2d72d86..58fbbce 100644 --- a/app.py +++ b/app.py @@ -50,8 +50,9 @@ def index(): def run(): filigramme = request.form['filigramme'] config = load_config() - result = my_function({}, filigramme) + result = traitement(filigramme) # on passe l'argument a la function 'main' du programme return jsonify(result) if __name__ == '__main__': - app.run(debug=True) + app.run(host='0.0.0.0', port=5000, debug=True) +