Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +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)
|
|
|
|
| 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["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"]
|
| 11 |
|
| 12 |
def extract_text_from_pdf(file):
|
| 13 |
reader = PyPDF2.PdfReader(file)
|