tg
Browse files- backend/app.py +5 -4
- backend/celery_app.py +2 -1
backend/app.py
CHANGED
@@ -8,12 +8,13 @@ from flask_jwt_extended import JWTManager
|
|
8 |
import uuid
|
9 |
from concurrent.futures import ThreadPoolExecutor
|
10 |
|
11 |
-
|
12 |
-
from
|
13 |
-
from utils.
|
|
|
14 |
|
15 |
# Celery imports
|
16 |
-
from celery_app import celery
|
17 |
|
18 |
def setup_unicode_environment():
|
19 |
"""Setup Unicode environment for proper character handling."""
|
|
|
8 |
import uuid
|
9 |
from concurrent.futures import ThreadPoolExecutor
|
10 |
|
11 |
+
# Use relative import for the Config class to work with Hugging Face Spaces
|
12 |
+
from backend.config import Config
|
13 |
+
from backend.utils.database import init_supabase
|
14 |
+
from backend.utils.cookies import setup_secure_cookies, configure_jwt_with_cookies
|
15 |
|
16 |
# Celery imports
|
17 |
+
from backend.celery_app import celery
|
18 |
|
19 |
def setup_unicode_environment():
|
20 |
"""Setup Unicode environment for proper character handling."""
|
backend/celery_app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import os
|
2 |
from celery import Celery
|
3 |
-
|
|
|
4 |
|
5 |
def make_celery(app_name=__name__):
|
6 |
"""Create and configure the Celery application."""
|
|
|
1 |
import os
|
2 |
from celery import Celery
|
3 |
+
# Use relative import for the Config class to work with Hugging Face Spaces
|
4 |
+
from backend.config import Config
|
5 |
|
6 |
def make_celery(app_name=__name__):
|
7 |
"""Create and configure the Celery application."""
|