SKT-OM / app.py
Shrijanagain's picture
Rename app (1).py to app.py
a2aea28 verified
Raw
History Blame Contribute Delete
496 Bytes
from flask import Flask, render_template_string
import os
app = Flask(__name__)
# Load the HTML content
with open("skt_om_plugins.html", "r", encoding="utf-8") as f:
HTML_CONTENT = f.read()
@app.route("/")
def home():
return render_template_string(HTML_CONTENT)
@app.route("/health")
def health():
return {"status": "ok", "plugins": 73, "version": "2.0"}
if __name__ == "__main__":
port = int(os.environ.get("PORT", 7860))
app.run(host="0.0.0.0", port=port, debug=False)