Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
lixuejing
commited on
Commit
·
0228594
1
Parent(s):
eb9779f
fig
Browse files- app.py +2 -0
- requirements.txt +1 -1
app.py
CHANGED
@@ -46,6 +46,8 @@ def restart_space():
|
|
46 |
|
47 |
|
48 |
def init_space():
|
|
|
|
|
49 |
try:
|
50 |
print(EVAL_REQUESTS_PATH)
|
51 |
snapshot_download(
|
|
|
46 |
|
47 |
|
48 |
def init_space():
|
49 |
+
import os
|
50 |
+
os.environ['TRANSFORMERS_CACHE'] = '/hf_datas'
|
51 |
try:
|
52 |
print(EVAL_REQUESTS_PATH)
|
53 |
snapshot_download(
|
requirements.txt
CHANGED
@@ -5,7 +5,7 @@ datasets==2.14.5
|
|
5 |
gradio==4.9.0
|
6 |
gradio_client==0.7.2
|
7 |
TensorFlow >= 2.0
|
8 |
-
huggingface-hub==0.24.
|
9 |
matplotlib==3.7.1
|
10 |
numpy==1.24.2
|
11 |
pandas==2.0.0
|
|
|
5 |
gradio==4.9.0
|
6 |
gradio_client==0.7.2
|
7 |
TensorFlow >= 2.0
|
8 |
+
huggingface-hub==0.24.0
|
9 |
matplotlib==3.7.1
|
10 |
numpy==1.24.2
|
11 |
pandas==2.0.0
|