MOTORS / app.py
gopichandra's picture
Update app.py
afdc50d verified
raw
history blame contribute delete
342 Bytes
from flask import Flask, send_from_directory
app = Flask(__name__)
@app.route("/")
def serve_frontend():
return send_from_directory(".", "index.html")
@app.route("/static/<path:filename>")
def serve_static(filename):
return send_from_directory("static", filename)
if __name__ == "__main__":
app.run(host="0.0.0.0", port=7860)