Skip to content
Snippets Groups Projects
Commit 54a4951f authored by Dominic Daniel Krämer's avatar Dominic Daniel Krämer
Browse files

replace return statement with 'index.html' template

parent 97eb8488
No related branches found
No related tags found
No related merge requests found
from flask import Flask from flask import Flask
from flask import render_template
app = Flask(__name__) app = Flask(__name__)
@app.route('/') @app.route('/')
def home(): def home():
return "Space Station Chatbot" return render_template("index.html")
if __name__ == '__main__': if __name__ == '__main__':
app.run(debug=True) app.run(debug=True)
<!DOCTYPE html>
<html>
<head>
<title>Space Station Chatbot</title>
<meta charset="UTF-8">
</head>
<body>
<h1>Welcome to the Space Station Chatbot!</h1>
</body>
</html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment