Anonymous-AC commited on
Commit
e595685
·
verified ·
1 Parent(s): 301649c

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -1,12 +1,12 @@
1
- import os
2
- import shutil
3
-
4
- # Clean and recreate HF cache directory
5
- cache_dir = "/tmp/hf_cache"
6
- if os.path.exists(cache_dir):
7
- shutil.rmtree(cache_dir)
8
- os.makedirs(cache_dir, exist_ok=True)
9
- os.environ["HF_HOME"] = cache_dir
10
 
11
  import streamlit as st
12
  from PIL import Image
 
1
+ # import os
2
+ # import shutil
3
+
4
+ # # Clean and recreate HF cache directory
5
+ # cache_dir = "/tmp/hf_cache"
6
+ # if os.path.exists(cache_dir):
7
+ # shutil.rmtree(cache_dir)
8
+ # os.makedirs(cache_dir, exist_ok=True)
9
+ # os.environ["HF_HOME"] = cache_dir
10
 
11
  import streamlit as st
12
  from PIL import Image