Spaces:
Runtime error
Runtime error
Shahabmoin
commited on
Update app.py
Browse files
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=
|
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):
|