Andhs commited on
Commit
e089069
·
verified ·
1 Parent(s): 20753aa

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -580,6 +580,13 @@ def generate_text_sse():
580
  )
581
 
582
 
 
 
 
 
 
 
 
583
  if __name__ == '__main__':
584
  load_model()
585
  app.run(host='0.0.0.0', port=int(os.getenv('PORT', 5000)))
 
580
  )
581
 
582
 
583
+ @app.route('/')
584
+ def index():
585
+ return {
586
+ "status": "healthy",
587
+ "message": f"dLLM API Server up and running. Model: {os.getenv('MODEL_NAME')}"
588
+ }, 200
589
+
590
  if __name__ == '__main__':
591
  load_model()
592
  app.run(host='0.0.0.0', port=int(os.getenv('PORT', 5000)))