Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import os
from flask import Flask
from generator import generator
app = Flask(__name__)
@app.route("/")
def generate_buzz():
page = """<html>
<head>
<title>Movies Generator</title>
</head>"""
page += """ <body>
<h1>"""+generator.generate_movie() +"""</h1>
</body>
</html>"""
return page
if __name__ == "__main__":
app.run(host='0.0.0.0', port=int(os.getenv('PORT', 5000)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment