Spaces:
Sleeping
Sleeping
Upload backend/hue_portal/celery_app.py with huggingface_hub
Browse files
backend/hue_portal/celery_app.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
|
| 3 |
+
from celery import Celery
|
| 4 |
+
|
| 5 |
+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hue_portal.hue_portal.settings")
|
| 6 |
+
|
| 7 |
+
app = Celery("hue_portal")
|
| 8 |
+
app.config_from_object("django.conf:settings", namespace="CELERY")
|
| 9 |
+
app.autodiscover_tasks()
|
| 10 |
+
|