Spaces:
Sleeping
Sleeping
Yarik
commited on
Commit
·
cfaeb09
1
Parent(s):
e5f531d
update 2 app.py
Browse files
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["
|
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 = {
|