staraks commited on
Commit
a243a25
·
verified ·
1 Parent(s): 44b20ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -823,3 +823,10 @@ if __name__ == "__main__":
823
 
824
  port = int(os.getenv("PORT", "7860"))
825
  uvicorn.run("app:app", host="0.0.0.0", port=port, reload=False)
 
 
 
 
 
 
 
 
823
 
824
  port = int(os.getenv("PORT", "7860"))
825
  uvicorn.run("app:app", host="0.0.0.0", port=port, reload=False)
826
+
827
+
828
+
829
+ @app.get("/health", response_class=PlainTextResponse)
830
+ def health():
831
+ return "OK"
832
+