Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|