modificaiton pour flask

This commit is contained in:
Alex 2024-07-25 12:49:36 +00:00
parent 370d54cc85
commit a0bd30c8d6

5
app.py
View File

@ -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)