Spaces:
Running
Running
File size: 327 Bytes
28c3a11 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from flask import Flask, render_template
from flask import send_file
app = Flask(__name__)
@app.route("/")
def index():
return render_template("index.html")
@app.route("/taxonomy.json")
def loadFile():
path = "taxonomy.json"
return send_file(path, as_attachment=True)
if __name__ == "__main__":
app.run() |