Spaces:
Configuration error
Configuration error
File size: 357 Bytes
97e3689 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import sys
from django.apps import AppConfig
class StreamVideoConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "stream_video"
def ready(self):
if "runserver" not in sys.argv:
return True
from detection.main import load_machine_learning_models
load_machine_learning_models()
|