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
823f2dd
chatgpt
/
test.py
Liuli
init
fa1a06b
over 1 year ago
raw
Copy download link
history
blame
Safe
179 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)