download
raw
466 Bytes
import os
from celery import Celery
HF_SPACES = os.environ.get('HF_SPACES', '').lower() in ('true', '1', 'yes')
if not HF_SPACES:
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'simulationserver.settings')
app = Celery('simulationserver')
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()
@app.task(bind=True, ignore_result=True)
def debug_task(self):
print(f'Request: {self.request!r}')

Xet Storage Details

Size:
466 Bytes
·
Xet hash:
bdb474070980283d1ebe2ed80add167cf0ec0dca1cd7a20906097922f25a38cd

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.