Bachstelze commited on
Commit
b76facc
·
1 Parent(s): 06a04e7

use synchronous model loading

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -457,8 +457,9 @@ def load_models_async():
457
 
458
  if __name__ == "__main__":
459
  # Start model loading in background thread
460
- loading_thread = threading.Thread(target=load_models_async, daemon=True)
461
- loading_thread.start()
 
462
 
463
  # Create the interface immediately (models loading in background)
464
  demo = create_interface()
 
457
 
458
  if __name__ == "__main__":
459
  # Start model loading in background thread
460
+ #loading_thread = threading.Thread(target=load_models_async, daemon=True)
461
+ #loading_thread.start()
462
+ load_models_async()
463
 
464
  # Create the interface immediately (models loading in background)
465
  demo = create_interface()