Koshti10 commited on
Commit
b913cc0
·
verified ·
1 Parent(s): 907da04

Update driveapi/drive.py

Browse files
Files changed (1) hide show
  1. driveapi/drive.py +2 -0
driveapi/drive.py CHANGED
@@ -50,6 +50,8 @@ def download_file(file_id):
50
 
51
  # Function to process a PDF file
52
  def process_pdf(file_stream):
 
 
53
  file_path = file_stream['name'] # Use 'path' for local testing and 'name' for Gradio
54
  pdf_reader = PyPDF2.PdfReader(file_path)
55
  text = ""
 
50
 
51
  # Function to process a PDF file
52
  def process_pdf(file_stream):
53
+ print(f"File stream is of type: {type(file_stream)}")
54
+ print(f"File stream is : {file_stream")
55
  file_path = file_stream['name'] # Use 'path' for local testing and 'name' for Gradio
56
  pdf_reader = PyPDF2.PdfReader(file_path)
57
  text = ""