Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,8 +7,7 @@ import PyPDF2
|
|
| 7 |
import openai # Or use HuggingFace's transformers/pipelines for open-source models
|
| 8 |
|
| 9 |
# Set your OpenAI API key (or replace with Hugging Face model and pipeline)
|
| 10 |
-
OPENAI_API_KEY = st.secrets["
|
| 11 |
-
|
| 12 |
def extract_text_from_pdf(file):
|
| 13 |
reader = PyPDF2.PdfReader(file)
|
| 14 |
text = ""
|
|
|
|
| 7 |
import openai # Or use HuggingFace's transformers/pipelines for open-source models
|
| 8 |
|
| 9 |
# Set your OpenAI API key (or replace with Hugging Face model and pipeline)
|
| 10 |
+
OPENAI_API_KEY = st.secrets["OPENAI_API_KEY"]
|
|
|
|
| 11 |
def extract_text_from_pdf(file):
|
| 12 |
reader = PyPDF2.PdfReader(file)
|
| 13 |
text = ""
|