Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ client = Groq(api_key="GROQ_API_KEY")
|
|
13 |
|
14 |
# Function to extract text from a PDF
|
15 |
def extract_text_from_pdf(pdf_path):
|
16 |
-
doc = fitz.open(
|
17 |
text = ""
|
18 |
for page in doc:
|
19 |
text += page.get_text()
|
|
|
13 |
|
14 |
# Function to extract text from a PDF
|
15 |
def extract_text_from_pdf(pdf_path):
|
16 |
+
doc = fitz.open(pdf_path)
|
17 |
text = ""
|
18 |
for page in doc:
|
19 |
text += page.get_text()
|