Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files
main.py
CHANGED
|
@@ -6,8 +6,8 @@ import os
|
|
| 6 |
|
| 7 |
# OPTIONAL: Set HuggingFace cache directory (only for local dev)
|
| 8 |
# Comment this out for production to use default cache
|
| 9 |
-
if not os.getenv("RENDER"): # Only for local development
|
| 10 |
-
|
| 11 |
|
| 12 |
from fastapi import FastAPI
|
| 13 |
from fastapi.staticfiles import StaticFiles
|
|
|
|
| 6 |
|
| 7 |
# OPTIONAL: Set HuggingFace cache directory (only for local dev)
|
| 8 |
# Comment this out for production to use default cache
|
| 9 |
+
# if not os.getenv("RENDER"): # Only for local development
|
| 10 |
+
# os.environ['HF_HOME'] = 'G:/huggingface_cache'
|
| 11 |
|
| 12 |
from fastapi import FastAPI
|
| 13 |
from fastapi.staticfiles import StaticFiles
|