Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import shutil
|
|
10 |
import tempfile
|
11 |
load_dotenv() # Load environment variables from .env file
|
12 |
# Now replace the hard-coded token with the environment variable
|
13 |
-
|
14 |
def clear_cache():
|
15 |
try:
|
16 |
# Clear Gradio cache
|
|
|
10 |
import tempfile
|
11 |
load_dotenv() # Load environment variables from .env file
|
12 |
# Now replace the hard-coded token with the environment variable
|
13 |
+
HUGGINGFACE_API_TOKEN = os.getenv("HUGGINGFACE_TOKEN")
|
14 |
def clear_cache():
|
15 |
try:
|
16 |
# Clear Gradio cache
|