chatbytes commited on
Commit
f9001b1
·
verified ·
1 Parent(s): 760a148

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 result
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: