Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
JohnSmith9982/ChuanhuChatGPT
Liuli
/
chatgpt
like
0
Runtime error
App
Files
Files
Community
c77e963
chatgpt
/
test.py
Liuli
数据库存储密码
c77e963
over 1 year ago
raw
Copy download link
history
blame
177 Bytes
import
os
os.path.exists(
"api_key.txt"
)
with
open
(
"api_key.txt"
,
"r"
)
as
f:
my_api_key = f.read().strip()
my_api_key = os.environ.get(
"my_api_key"
)
print
(my_api_key)