Spaces:
Sleeping
Sleeping
HassanDataSci
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from PIL import Image
|
|
4 |
import os
|
5 |
|
6 |
# Hugging Face token login (add this as a secret in Hugging Face Spaces)
|
7 |
-
os.environ["HF_TOKEN"] = st.secrets["
|
8 |
|
9 |
# Load the image classification pipeline
|
10 |
@st.cache_resource
|
|
|
4 |
import os
|
5 |
|
6 |
# Hugging Face token login (add this as a secret in Hugging Face Spaces)
|
7 |
+
os.environ["HF_TOKEN"] = st.secrets["HF_AUTH_TOKEN"]
|
8 |
|
9 |
# Load the image classification pipeline
|
10 |
@st.cache_resource
|