dippoo Claude Opus 4.5 commited on
Commit
5402b16
·
1 Parent(s): f723987

Fix startup: add runpod to requirements, make import optional

Browse files

- Add runpod>=1.6.0 to requirements.txt
- Remove higgsfield-client (not needed, SDK doesn't exist)
- Make runpod import optional in routes_video.py

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

requirements.txt CHANGED
@@ -13,4 +13,4 @@ httpx>=0.26.0
13
  pyyaml>=6.0
14
  python-multipart>=0.0.6
15
  python-dotenv>=1.0.0
16
- higgsfield-client>=0.1.0
 
13
  pyyaml>=6.0
14
  python-multipart>=0.0.6
15
  python-dotenv>=1.0.0
16
+ runpod>=1.6.0
src/content_engine/api/routes_video.py CHANGED
@@ -10,10 +10,17 @@ import time
10
  import uuid
11
  from pathlib import Path
12
 
13
- import runpod
14
  from fastapi import APIRouter, File, Form, HTTPException, UploadFile
15
  from pydantic import BaseModel
16
 
 
 
 
 
 
 
 
 
17
  logger = logging.getLogger(__name__)
18
 
19
  router = APIRouter(prefix="/api/video", tags=["video"])
 
10
  import uuid
11
  from pathlib import Path
12
 
 
13
  from fastapi import APIRouter, File, Form, HTTPException, UploadFile
14
  from pydantic import BaseModel
15
 
16
+ # Optional RunPod import
17
+ try:
18
+ import runpod
19
+ RUNPOD_AVAILABLE = True
20
+ except ImportError:
21
+ runpod = None
22
+ RUNPOD_AVAILABLE = False
23
+
24
  logger = logging.getLogger(__name__)
25
 
26
  router = APIRouter(prefix="/api/video", tags=["video"])