abakerdp commited on
Commit
8d6dc42
·
verified ·
1 Parent(s): 597fa2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -31,10 +31,7 @@ if 'pdf-index' not in pc.list_indexes().names():
31
 
32
  # Connect to index
33
  index = pc.Index('pdf-index')
34
-
35
- def process_pdf(file):
36
- # Read PDF content
37
-
38
  # Function to extract text from the PDF file using PyPDF2
39
  def process_pdf(file):
40
  # Get the file path from the 'file' attribute (Gradio passes file as a temporary file)
 
31
 
32
  # Connect to index
33
  index = pc.Index('pdf-index')
34
+
 
 
 
35
  # Function to extract text from the PDF file using PyPDF2
36
  def process_pdf(file):
37
  # Get the file path from the 'file' attribute (Gradio passes file as a temporary file)