Created
May 7, 2024 06:25
-
-
Save albertopasqualetto/3d825b9d17ec3c20dff2a484da057815 to your computer and use it in GitHub Desktop.
Server which serves a pdf file
This file contains hidden or 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
from flask import Flask, send_file | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
return send_file('main.pdf') | |
if __name__ == '__main__': | |
app.run(debug=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment