engrphoenix commited on
Commit
026bcae
·
verified ·
1 Parent(s): 43d5a63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -7,8 +7,10 @@ import faiss
7
  import fitz
8
 
9
  # Set up Groq API client
10
- groq_client = Groq(api_key="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")
11
-
 
 
12
  # Function to extract text from PDF
13
  def extract_pdf_content(pdf_file):
14
  doc = fitz.open(pdf_file)
 
7
  import fitz
8
 
9
  # Set up Groq API client
10
+ #groq_client = Groq(api_key="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")
11
+ def get_groq_client():
12
+ return Groq(api_key=os.environ.get("api_key"))
13
+
14
  # Function to extract text from PDF
15
  def extract_pdf_content(pdf_file):
16
  doc = fitz.open(pdf_file)