| """ |
| Activity Time Explorer (Flask) |
| ------------------------------- |
| Minimal Flask server — serves only the HTML template and static assets. |
| All CSV processing happens client-side in the browser. |
| |
| Run with: |
| pip install flask |
| python app.py |
| |
| Then open http://localhost:5000 and upload a CSV. |
| """ |
|
|
| from flask import Flask, render_template |
| from waitress import serve |
|
|
| app = Flask(__name__) |
|
|
|
|
| @app.route("/") |
| def index(): |
| return render_template("index.html") |
|
|
|
|
| if __name__ == "__main__": |
| print("Serving on http://localhost:5000") |
| serve(app, host="0.0.0.0", port=5000) |
|
|