Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions hub2vu/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env
venvtest
14 changes: 14 additions & 0 deletions hub2vu/example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from dotenv import load_dotenv
import os

# .env 파일 로드 (같은 폴더에 있어야 함)
load_dotenv()

# 환경 변수 읽기
api_key = os.getenv("OPENAI_API_KEY")

# 출력
if api_key:
print(f"My API Key is : {api_key}")
else:
print("OPENAI_API_KEY가 설정되어 있지 않습니다.")
Binary file added hub2vu/print.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.