Spaces:
Build error
Build error
Update app.py
Browse files6 unmodified lines789101112136 unmodified linesimport gradio as gr# Access the Hugging Face token from the environment variableHF_TOKEN = os.getenv("HF_Token")# Ensure the token is loaded correctly (optional)if not HF_TOKEN:6 unmodified lines78910111213141516176 unmodified linesimport gradio as gr# Access the Hugging Face token from the environment variablefrom huggingface_hub import login# Log in with tokenlogin(token=os.getenv("HF_Token"))# Ensure the token is loaded correctly (optional)if not HF_TOKEN:
app.py+5-1