Skip to content

Instantly share code, notes, and snippets.

@JoaquinAcuna97
Created August 6, 2021 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoaquinAcuna97/559fddf5a8e8a3e80b78af0dcab2a2a5 to your computer and use it in GitHub Desktop.
Save JoaquinAcuna97/559fddf5a8e8a3e80b78af0dcab2a2a5 to your computer and use it in GitHub Desktop.
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