Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic Flask application #55

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Basic Flask application #55

wants to merge 6 commits into from

Conversation

NelisKaars
Copy link
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).

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

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