Created
August 6, 2021 16:53
-
-
Save JoaquinAcuna97/559fddf5a8e8a3e80b78af0dcab2a2a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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