Spaces:
Sleeping
Sleeping
Bachstelze commited on
Commit ·
211c86b
1
Parent(s): a5e8cf9
use global variable
Browse files
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()
|