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...
796dc26
chatbot
/
app.py
yunshi1207
Update app.py
796dc26
over 1 year ago
raw
Copy download link
history
blame
Safe
245 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}
"
)