Spaces:
Running
on
Zero
Update app.py
Hey! super cool work, congrats 🤗
for safety reasons, it would be best to remove the token in the app file and invalidate it.
To safely add a new one, create a new token (with the fine-grained permissions required) and then in the Space settings
, add it as a new secret
, with Name == HF_TOKEN
and Value == the token you generated, see attached image -
Thank you so much for your kind words and this extremely important reminder! Security is of utmost importance to us, and your advice on handling the token is spot - on. We'll address this issue promptly and remove the existing token from the app file, then follow your suggested steps to safely add a new one. Your feedback is invaluable, and we really appreciate you taking the time to share it with us!