Skip to content

Basic Flask application#55

Open
NelisKaars wants to merge 6 commits into
mainfrom
niels
Open

Basic Flask application#55
NelisKaars wants to merge 6 commits into
mainfrom
niels

Conversation

@NelisKaars

Copy link
Copy Markdown
Contributor

Basic flask application to just connect it to azure. Profile and chatbot has to be redesigned but they should work (couldnt test it without connection).

Comment thread backend/app.py Outdated
from werkzeug.security import generate_password_hash, check_password_hash

app = Flask(__name__)
app.secret_key = 'your-secret-key'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably go to a .env file

Comment thread backend/app.py Outdated
return jsonify({"response": bot_reply})

if __name__ == "__main__":
app.run(debug=True, host="0.0.0.0", port=5000)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove the host parameter in order to solve the bandit issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants