Spaces:
Build error
Build error
Don't put Your API key in the app.py file !
#1
by
AkashKhamkar
- opened
This comment has been hidden
hi @Angelaangie
you can set a secret OPENAI_TOKEN
on the Spaces/Settings
https://huggingface.co/docs/hub/spaces-overview#managing-secrets
replace this line https://huggingface.co/spaces/Angelaangie/personal-chat-gpt/blob/f1c881abfed4c29b6b02fe0dfca7e72e510b552a/app.py#L9
with
openai.api_key = os.environ["OPENAI_TOKEN"]
AkashKhamkar
changed discussion status to
closed
AkashKhamkar
changed discussion status to
open