<reponame>mlmerile/presagir<gh_stars>1-10
from flask import Flask, request, send_from_directory
import os

port = int(os.getenv("PORT", 9099))

app = Flask(__name__)

@app.route("/<path:path>")
def serve_page(path):
    return send_from_directory("static", path)

@app.route("/")
def main():
    """Adjust the presentation_name if you rename the jupyter notebook."""
    presentation_name = "presentation_template.slides.html"
    return app.send_static_file(presentation_name)

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=port)

from flask import Flask, request, send_from_directory
import os

port = int(os.getenv("PORT", 9099))

app = Flask(__name__)

@app.route("/<path:path>")
def serve_page(path):
    return send_from_directory("static", path)

@app.route("/")
def main():
    """Adjust the presentation_name if you rename the jupyter notebook."""
    presentation_name = "presentation_template.slides.html"
    return app.send_static_file(presentation_name)

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=port)
Adjust the presentation_name if you rename the jupyter notebook.