Akatuki25 commited on
Commit
8214f80
·
1 Parent(s): b70686b

Fix module import path for seed-vc

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,8 +20,8 @@ from fastapi.responses import Response
20
  from pydantic import BaseModel
21
 
22
  # Seed-VC
23
- sys.path.insert(0, 'seed-vc')
24
- os.environ['HF_HUB_CACHE'] = './checkpoints/hf_cache'
25
  os.environ['PYTORCH_ENABLE_MPS_FALLBACK'] = '1'
26
 
27
  # MPSを無効化してCPUを強制
 
20
  from pydantic import BaseModel
21
 
22
  # Seed-VC
23
+ sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'seed-vc'))
24
+ os.environ['HF_HUB_CACHE'] = os.path.join(os.path.dirname(__file__), 'checkpoints', 'hf_cache')
25
  os.environ['PYTORCH_ENABLE_MPS_FALLBACK'] = '1'
26
 
27
  # MPSを無効化してCPUを強制