Shahabmoin commited on
Commit
36c1c6e
·
verified ·
1 Parent(s): 8434d61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -8,7 +8,8 @@ from langchain.vectorstores import FAISS
8
  from groq import Groq
9
 
10
  # Initialize Groq API
11
- client = Groq(api_key=os.environ.get("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"))
 
12
 
13
  # Function to extract text from PDF
14
  def extract_text_from_pdf(pdf_path):
 
8
  from groq import Groq
9
 
10
  # Initialize Groq API
11
+ GROQ_API_KEY = "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"
12
+ client = Groq(api_key=GROQ_API_KEY)
13
 
14
  # Function to extract text from PDF
15
  def extract_text_from_pdf(pdf_path):