davanstrien HF staff commited on
Commit
284db10
1 Parent(s): 976f652

add hf_transfer

Browse files
Files changed (3) hide show
  1. app.py +3 -0
  2. requirements.in +1 -0
  3. requirements.txt +2 -0
app.py CHANGED
@@ -5,6 +5,9 @@ from apscheduler.schedulers.background import BackgroundScheduler
5
  from cachetools import TTLCache, cached
6
  from setfit import SetFitModel
7
  from tqdm.auto import tqdm
 
 
 
8
 
9
  CACHE_TIME = 60 * 60 * 12
10
  MAX_RESULTS = 30_000
 
5
  from cachetools import TTLCache, cached
6
  from setfit import SetFitModel
7
  from tqdm.auto import tqdm
8
+ import os
9
+
10
+ os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
11
 
12
  CACHE_TIME = 60 * 60 * 12
13
  MAX_RESULTS = 30_000
requirements.in CHANGED
@@ -2,5 +2,6 @@ apscheduler
2
  arxiv
3
  cachetools
4
  gradio
 
5
  scikit-learn==1.2.2
6
  setfit
 
2
  arxiv
3
  cachetools
4
  gradio
5
+ hf-transfer
6
  scikit-learn==1.2.2
7
  setfit
requirements.txt CHANGED
@@ -94,6 +94,8 @@ h11==0.14.0
94
  # via
95
  # httpcore
96
  # uvicorn
 
 
97
  httpcore==0.18.0
98
  # via httpx
99
  httpx==0.25.0
 
94
  # via
95
  # httpcore
96
  # uvicorn
97
+ hf-transfer==0.1.3
98
+ # via -r requirements.in
99
  httpcore==0.18.0
100
  # via httpx
101
  httpx==0.25.0