Spaces:
Sleeping
Sleeping
Yarik
commited on
Commit
·
66108fb
1
Parent(s):
cfaeb09
update 2 app.py
Browse files- app.py +3 -0
- stanza_resources/check.txt +0 -0
app.py
CHANGED
@@ -23,8 +23,11 @@ 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["MODEL_DIR"] = "/app/model"
|
27 |
|
|
|
|
|
28 |
os.makedirs("/app/model", exist_ok=True)
|
29 |
|
30 |
tts_kwargs = {
|
|
|
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 |
os.environ["MODEL_DIR"] = "/app/model"
|
28 |
|
29 |
+
# Create necessary directories if they don't exist
|
30 |
+
os.makedirs("/app/stanza_resources", exist_ok=True)
|
31 |
os.makedirs("/app/model", exist_ok=True)
|
32 |
|
33 |
tts_kwargs = {
|
stanza_resources/check.txt
DELETED
File without changes
|