davanstrien HF staff commited on
Commit
aaa5e36
·
1 Parent(s): 2b554c7

remove diskcache import

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -13,7 +13,6 @@ import gradio as gr
13
  from apscheduler.schedulers.background import BackgroundScheduler
14
  from apscheduler.triggers.cron import CronTrigger
15
  from cachetools import TTLCache, cached
16
- from diskcache import Cache
17
  from dotenv import load_dotenv
18
  from huggingface_hub import (
19
  HfApi,
@@ -33,7 +32,6 @@ cache_location = "cache/" if local else "/data/cache"
33
 
34
  save_dir = "test_data" if local else "/data/"
35
  Path(save_dir).mkdir(parents=True, exist_ok=True)
36
- cache = Cache(cache_location)
37
  load_dotenv()
38
  user_agent = os.getenv("USER_AGENT")
39
  HF_TOKEN = os.getenv("HF_TOKEN")
 
13
  from apscheduler.schedulers.background import BackgroundScheduler
14
  from apscheduler.triggers.cron import CronTrigger
15
  from cachetools import TTLCache, cached
 
16
  from dotenv import load_dotenv
17
  from huggingface_hub import (
18
  HfApi,
 
32
 
33
  save_dir = "test_data" if local else "/data/"
34
  Path(save_dir).mkdir(parents=True, exist_ok=True)
 
35
  load_dotenv()
36
  user_agent = os.getenv("USER_AGENT")
37
  HF_TOKEN = os.getenv("HF_TOKEN")