Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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")
|