-
-
Save MikeShi42/6dff9c1cdcbeea9a8b527dc06df6ba42 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
from flask import Flask | |
import json | |
app = Flask(__name__, static_folder='.') | |
@app.route("/data") | |
def data(): | |
return json.dumps(observations) | |
@app.route('/') | |
def root(): | |
return app.send_static_file('./index.html') | |
app.run(host='0.0.0.0', port='3000') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment