Zelyanoth commited on
Commit
b29b905
·
1 Parent(s): 25f22bf
Files changed (2) hide show
  1. backend/app.py +5 -4
  2. 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
- from config import Config
12
- from utils.database import init_supabase
13
- from utils.cookies import setup_secure_cookies, configure_jwt_with_cookies
 
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
- from config import Config
 
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."""