Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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 |
-
|
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
|