davidtran999 commited on
Commit
e6b544a
·
verified ·
1 Parent(s): 72ed420

Upload backend/hue_portal/celery_app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. backend/hue_portal/celery_app.py +10 -0
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
+