modificaiton pour flask
This commit is contained in:
parent
370d54cc85
commit
a0bd30c8d6
5
app.py
5
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user