mgokg commited on
Commit
80804ab
·
verified ·
1 Parent(s): eaa3bf2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ collection = client.get_or_create_collection(name="code")
9
  # Funktion zum Extrahieren von Text aus einer PDF-Datei
10
  def extract_text_from_pdf(file_path):
11
  try:
12
- doc = fitz.open(file_path)
13
  text = ""
14
  for page in doc:
15
  text += page.get_text()
 
9
  # Funktion zum Extrahieren von Text aus einer PDF-Datei
10
  def extract_text_from_pdf(file_path):
11
  try:
12
+ doc = fitz.open("Ausgabe.pdf")
13
  text = ""
14
  for page in doc:
15
  text += page.get_text()