dhineshkmar commited on
Commit
44c2c84
·
verified ·
1 Parent(s): 3faa452

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -1,6 +1,12 @@
1
  import os
 
 
 
 
 
 
2
  from neurosight_app_with_auth import app
3
 
4
  if __name__ == "__main__":
5
- port = int(os.environ.get("PORT", 7860))
6
  app.run(host="0.0.0.0", port=port, debug=False)
 
1
  import os
2
+ import sys
3
+
4
+ # Set port
5
+ port = int(os.environ.get("PORT", 7860))
6
+
7
+ # Import and run Flask app
8
  from neurosight_app_with_auth import app
9
 
10
  if __name__ == "__main__":
11
+ # Don't load AI models on startup (comment out model loading)
12
  app.run(host="0.0.0.0", port=port, debug=False)