Spaces:
Running
Running
BraydenMoore
commited on
Commit
•
54307f8
1
Parent(s):
30bdb6f
Add cache
Browse files
main.py
CHANGED
@@ -10,6 +10,9 @@ import random
|
|
10 |
from pathlib import Path
|
11 |
THIS_FOLDER = Path(__file__).parent.resolve()
|
12 |
|
|
|
|
|
|
|
13 |
app = Flask(__name__)
|
14 |
app.secret_key = 'pi-33pp-co-sk-33'
|
15 |
app.template_folder = os.path.abspath(f'{THIS_FOLDER}/web/templates')
|
|
|
10 |
from pathlib import Path
|
11 |
THIS_FOLDER = Path(__file__).parent.resolve()
|
12 |
|
13 |
+
import os
|
14 |
+
os.environ["TRANSFORMERS_CACHE"] = "/tmp/transformers_cache/"
|
15 |
+
|
16 |
app = Flask(__name__)
|
17 |
app.secret_key = 'pi-33pp-co-sk-33'
|
18 |
app.template_folder = os.path.abspath(f'{THIS_FOLDER}/web/templates')
|