Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ import fitz
|
|
| 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("
|
| 13 |
|
| 14 |
# Function to extract text from PDF
|
| 15 |
def extract_pdf_content(pdf_file):
|
|
|
|
| 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("groq_api"))
|
| 13 |
|
| 14 |
# Function to extract text from PDF
|
| 15 |
def extract_pdf_content(pdf_file):
|