Spaces:
Running
Running
update
#1
by
MsChabane
- opened
main.py
CHANGED
@@ -19,7 +19,11 @@ import seaborn as sns
|
|
19 |
import PIL.Image as Image
|
20 |
|
21 |
import fitz
|
22 |
-
|
|
|
|
|
|
|
|
|
23 |
|
24 |
|
25 |
app=FastAPI()
|
|
|
19 |
import PIL.Image as Image
|
20 |
|
21 |
import fitz
|
22 |
+
import os
|
23 |
+
os.environ["MPLCONFIGDIR"] = "/tmp/matplotlib"
|
24 |
+
os.environ["XDG_CACHE_HOME"] = "/tmp/cache"
|
25 |
+
os.environ["TRANSFORMERS_CACHE"] = "/tmp/transformers"
|
26 |
+
os.environ["HF_HOME"] = "/tmp/huggingface"
|
27 |
|
28 |
|
29 |
app=FastAPI()
|