nightprogrammer commited on
Commit
49716ad
·
verified ·
1 Parent(s): 104304e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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["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"]
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 = ""