Update app.py
Browse files
app.py
CHANGED
@@ -36,9 +36,9 @@ def text_extract(file):
|
|
36 |
for page_num in range(num_pages):
|
37 |
page = pdf_reader.pages[page_num]
|
38 |
text += page.extract_text() or ""
|
39 |
-
text_splitter = text_splitter_function(text) # Split extracted text into chunks
|
40 |
-
result = helper(text_splitter) # Call helper to process text chunks
|
41 |
-
return
|
42 |
|
43 |
# Define Gradio interface
|
44 |
with gr.Blocks() as demo:
|
|
|
36 |
for page_num in range(num_pages):
|
37 |
page = pdf_reader.pages[page_num]
|
38 |
text += page.extract_text() or ""
|
39 |
+
# text_splitter = text_splitter_function(text) # Split extracted text into chunks
|
40 |
+
# result = helper(text_splitter) # Call helper to process text chunks
|
41 |
+
return text
|
42 |
|
43 |
# Define Gradio interface
|
44 |
with gr.Blocks() as demo:
|