Shahabmoin commited on
Commit
8f62e8c
·
verified ·
1 Parent(s): d2b120e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ from io import BytesIO # To handle file upload correctly
10
  # Initialize the Hugging Face model and Groq API client
11
  model = SentenceTransformer('all-MiniLM-L6-v2') # Model for generating embeddings
12
  GROQ_API_KEY = "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"
13
- client = Groq(api_key="GROQ_API_KEY")
14
 
15
  # Function to extract text from a PDF
16
  def extract_text_from_pdf(file):
 
10
  # Initialize the Hugging Face model and Groq API client
11
  model = SentenceTransformer('all-MiniLM-L6-v2') # Model for generating embeddings
12
  GROQ_API_KEY = "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"
13
+ client = Groq(api_key=GROQ_API_KEY)
14
 
15
  # Function to extract text from a PDF
16
  def extract_text_from_pdf(file):