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 .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env
myvenv
Binary file added 2주차 과제 사진.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions practice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# python 기준

import os
from dotenv import load_dotenv
from openai import OpenAI

# .env 파일 로드

load_dotenv()

# 환경 변수 불러오기

openai_api_key = os.getenv("OPENAI_API_KEY")

print("My API key is: "+openai_api_key)