diff --git a/hub2vu/.gitignore b/hub2vu/.gitignore new file mode 100644 index 0000000..68337d9 --- /dev/null +++ b/hub2vu/.gitignore @@ -0,0 +1,2 @@ +.env +venvtest \ No newline at end of file diff --git a/hub2vu/example.py b/hub2vu/example.py new file mode 100644 index 0000000..0054e44 --- /dev/null +++ b/hub2vu/example.py @@ -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가 설정되어 있지 않습니다.") diff --git a/hub2vu/print.png b/hub2vu/print.png new file mode 100644 index 0000000..04452af Binary files /dev/null and b/hub2vu/print.png differ