Spaces:
Runtime error
Runtime error
Really-amin
commited on
Commit
•
918f87a
1
Parent(s):
4a2b220
Update app/app.py
Browse files- app/app.py +1 -0
app/app.py
CHANGED
@@ -10,6 +10,7 @@ from typing import Dict, Optional, Set, List, Any
|
|
10 |
from collections import deque
|
11 |
from contextlib import asynccontextmanager
|
12 |
import gc
|
|
|
13 |
# تنظیم متغیرهای محیطی در ابتدای برنامه
|
14 |
if "TRANSFORMERS_CACHE" in os.environ:
|
15 |
os.environ["HF_HOME"] = os.environ["TRANSFORMERS_CACHE"]
|
|
|
10 |
from collections import deque
|
11 |
from contextlib import asynccontextmanager
|
12 |
import gc
|
13 |
+
import psutil
|
14 |
# تنظیم متغیرهای محیطی در ابتدای برنامه
|
15 |
if "TRANSFORMERS_CACHE" in os.environ:
|
16 |
os.environ["HF_HOME"] = os.environ["TRANSFORMERS_CACHE"]
|