Yarik commited on
Commit
cfaeb09
·
1 Parent(s): e5f531d

update 2 app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -23,10 +23,8 @@ app = FastAPI(docs_url=None, redoc_url=None)
23
  # Set environment variable for Hugging Face cache directory
24
  os.environ["HF_HOME"] = "/app/.cache"
25
 
26
- os.environ["STANZA_RESOURCES_DIR"] = "/app/stanza_resources"
27
 
28
- # Create necessary directories if they don't exist
29
- os.makedirs("/app/stanza_resources", exist_ok=True)
30
  os.makedirs("/app/model", exist_ok=True)
31
 
32
  tts_kwargs = {
 
23
  # Set environment variable for Hugging Face cache directory
24
  os.environ["HF_HOME"] = "/app/.cache"
25
 
26
+ os.environ["MODEL_DIR"] = "/app/model"
27
 
 
 
28
  os.makedirs("/app/model", exist_ok=True)
29
 
30
  tts_kwargs = {