tiffank1802
Make celery import conditional in __init__.py
be6c30d
import os
HF_SPACES = os.environ.get('HF_SPACES', '').lower() in ('true', '1', 'yes')
if not HF_SPACES:
from .celery import app as celery_app
__all__ = ('celery_app',)
else:
__all__ = ()