JUNGU commited on
Commit
2faa900
โ€ข
1 Parent(s): db123d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -12,10 +12,7 @@ from dotenv import load_dotenv
12
  import openai
13
 
14
  load_dotenv()
15
- #๋น„๋ฐ€ํ‚ค ๊ฐ€์ ธ์˜ค๊ธฐ ์‹œ๋„์ค‘
16
- # api_key = os.getenv('OPENAI_API_KEY') ## .env ํŒŒ์ผ ์—…๋กœ๋“œํ•˜๋ฉด ์ˆจ๊ฒจ์ง€์ง€ ์•Š์Œ ์•ˆ๋จ
17
- # api_key = os.environ['my_secret'] ## ์•ˆ๋ถˆ๋Ÿฌ์™€์ง
18
- # api_key = os.getenv('my_secret') ## 3ํŠธ .env ๋Œ€์‹  secretํ‚ค๋ฅผ ๋ถˆ๋Ÿฌ์˜ค๋Š” ํ˜•ํƒœ๋กœ ๋„์ „
19
  os.environ["OPENAI_API_KEY"] = os.environ['my_secret']
20
 
21
  loader = PyPDFLoader("/home/user/app/docs.pdf")
 
12
  import openai
13
 
14
  load_dotenv()
15
+
 
 
 
16
  os.environ["OPENAI_API_KEY"] = os.environ['my_secret']
17
 
18
  loader = PyPDFLoader("/home/user/app/docs.pdf")