Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import openai
|
|
4 |
import os
|
5 |
|
6 |
# here we are calling our API for openAI
|
7 |
-
os.environ["OPENAI_API_KEY"]
|
8 |
|
9 |
# We need to upload the file
|
10 |
def extract_text(pdfPath):
|
|
|
4 |
import os
|
5 |
|
6 |
# here we are calling our API for openAI
|
7 |
+
os.environ["OPENAI_API_KEY"] = os.getenv("OPENAI_API_KEY")
|
8 |
|
9 |
# We need to upload the file
|
10 |
def extract_text(pdfPath):
|