Update app.py
Browse files9 unmodified lines101112131415169 unmodified linesimport tempfileload_dotenv() # Load environment variables from .env file# Now replace the hard-coded token with the environment variableHUGGINGFACE_TOKEN = os.getenv("HUGGINGFACE_TOKEN")def clear_cache():try:# Clear Gradio cache9 unmodified lines101112131415169 unmodified linesimport tempfileload_dotenv() # Load environment variables from .env file# Now replace the hard-coded token with the environment variableHUGGINGFACE_API_TOKEN = os.getenv("HUGGINGFACE_TOKEN")def clear_cache():try:# Clear Gradio cache
app.py+1-1