Bachstelze commited on
Commit
211c86b
·
1 Parent(s): a5e8cf9

use global variable

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -457,7 +457,7 @@ def load_models_async():
457
 
458
  if __name__ == "__main__":
459
  # Load models asynchronously in background threads
460
-
461
  # Start model loading in background thread
462
  loading_thread = threading.Thread(target=load_models_async, daemon=True)
463
  loading_thread.start()
 
457
 
458
  if __name__ == "__main__":
459
  # Load models asynchronously in background threads
460
+ models_loaded = False
461
  # Start model loading in background thread
462
  loading_thread = threading.Thread(target=load_models_async, daemon=True)
463
  loading_thread.start()