Andhs commited on
Commit
69dfb7d
·
verified ·
1 Parent(s): 4f63f75

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -461,6 +461,6 @@ def index():
461
  "status": "healthy",
462
  "message": f"Multi-architecture API Router up and running. Target: {'Diffusion Framework' if IS_DIFFUSION else 'Causal Baseline Model'}", "model_loaded": MODEL_NAME}, 200
463
 
464
- if name == 'main':
465
  load_model()
466
  app.run(host='0.0.0.0', port=int(os.getenv('PORT', 7860)))
 
461
  "status": "healthy",
462
  "message": f"Multi-architecture API Router up and running. Target: {'Diffusion Framework' if IS_DIFFUSION else 'Causal Baseline Model'}", "model_loaded": MODEL_NAME}, 200
463
 
464
+ if __name__ == '__main__':
465
  load_model()
466
  app.run(host='0.0.0.0', port=int(os.getenv('PORT', 7860)))