lixuejing commited on
Commit
0228594
·
1 Parent(s): eb9779f
Files changed (2) hide show
  1. app.py +2 -0
  2. 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.1
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