Spaces:
Running
Running
Update app/bot.py
Browse files- app/bot.py +2 -2
app/bot.py
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
# app/bot.py
|
|
|
|
|
2 |
import os
|
3 |
# Set cache directories before importing transformers
|
4 |
os.environ['HF_HOME'] = '/app/.cache'
|
@@ -6,8 +8,6 @@ os.environ['TRANSFORMERS_CACHE'] = '/app/.cache/transformers'
|
|
6 |
os.environ['SENTENCE_TRANSFORMERS_HOME'] = '/app/.cache/sentence_transformers'
|
7 |
os.environ['TORCH_HOME'] = '/app/.cache/torch'
|
8 |
|
9 |
-
from __future__ import annotations
|
10 |
-
|
11 |
import logging
|
12 |
import re
|
13 |
import unicodedata
|
|
|
1 |
# app/bot.py
|
2 |
+
from __future__ import annotations
|
3 |
+
|
4 |
import os
|
5 |
# Set cache directories before importing transformers
|
6 |
os.environ['HF_HOME'] = '/app/.cache'
|
|
|
8 |
os.environ['SENTENCE_TRANSFORMERS_HOME'] = '/app/.cache/sentence_transformers'
|
9 |
os.environ['TORCH_HOME'] = '/app/.cache/torch'
|
10 |
|
|
|
|
|
11 |
import logging
|
12 |
import re
|
13 |
import unicodedata
|