Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
yunshi1207
/
chatbot
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
e09a9ae
chatbot
/
app.py
yunshi1207
Update app.py
e09a9ae
over 1 year ago
raw
Copy download link
history
blame
Safe
246 Bytes
# from huggingface_hub import secrets
# # 获取秘密的值
# secret_value = secrets.get(OPENAI_API_KEY)
from
os
import
environ
secrets_value = environ.get(
"OPENAI_API_KEY"
)
# 使用秘密的值
print
(
f"The secret value is:
{secrets_value}
"
)