davanstrien HF staff commited on
Commit
5f6ba44
1 Parent(s): 9e76504

update tab name

Browse files
Files changed (2) hide show
  1. app.py +4 -1
  2. requirements.txt +2 -0
app.py CHANGED
@@ -18,11 +18,14 @@ from huggingface_hub.utils import disable_progress_bars
18
  from rich import print
19
  from tqdm.auto import tqdm
20
 
 
 
 
 
21
  CACHE_EXPIRY_TIME = timedelta(hours=3)
22
 
23
  sync_cache = TTLCache(maxsize=200_000, ttl=CACHE_EXPIRY_TIME, timer=datetime.now)
24
 
25
-
26
  cache.setup("mem://")
27
 
28
 
 
18
  from rich import print
19
  from tqdm.auto import tqdm
20
 
21
+ from dotenv import load_dotenv
22
+
23
+ load_dotenv() # take environment variables from .env.
24
+
25
  CACHE_EXPIRY_TIME = timedelta(hours=3)
26
 
27
  sync_cache = TTLCache(maxsize=200_000, ttl=CACHE_EXPIRY_TIME, timer=datetime.now)
28
 
 
29
  cache.setup("mem://")
30
 
31
 
requirements.txt CHANGED
@@ -222,6 +222,8 @@ python-dateutil==2.8.2
222
  # jupyter-client
223
  # matplotlib
224
  # pandas
 
 
225
  python-multipart==0.0.6
226
  # via gradio
227
  pytz==2023.3
 
222
  # jupyter-client
223
  # matplotlib
224
  # pandas
225
+ python-dotenv==1.0.0
226
+ # via -r requirements.in
227
  python-multipart==0.0.6
228
  # via gradio
229
  pytz==2023.3