loreri commited on
Commit
3a6bf6a
·
verified ·
1 Parent(s): 8ccaa9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -1,7 +1,10 @@
1
- from fastapi import FastAPI
2
 
3
- app = FastAPI()
4
 
5
- @app.get("/healthcheck")
6
- def healthcheck():
7
- return {'status': 'UP'}
 
 
 
 
1
+ from flask import Flask, jsonify
2
 
3
+ app = Flask(__name__)
4
 
5
+ @app.route("/health", methods=["GET"])
6
+ def health():
7
+ return jsonify({"status": "ok"}), 200
8
+
9
+ if __name__ == "__main__":
10
+ app.run(host="0.0.0.0", port=7860)