acecalisto3 commited on
Commit
172a6d7
·
verified ·
1 Parent(s): c2a0954

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -155,7 +155,7 @@ class URLProcessor:
155
  class FileProcessor:
156
  """Class to handle file processing"""
157
 
158
- def __init__(self, max_file_size: int = 1536 * 1024 * 1024): # 1.5GB default
159
  self.max_file_size = max_file_size
160
  self.supported_text_extensions = {'.txt', '.md', '.csv', '.json', '.xml'}
161
  self.processed_zip_count = 0
@@ -174,6 +174,9 @@ class FileProcessor:
174
  # Check if the file is a Gradio File object or a string path
175
  file_path = file.name if isinstance(file, gr.File) else file
176
 
 
 
 
177
  # Skip if it's a directory
178
  if os.path.isdir(file_path):
179
  logger.warning(f"Skipping directory: {file_path}")
 
155
  class FileProcessor:
156
  """Class to handle file processing"""
157
 
158
+ def __init__(self, max_file_size: int = 2 * 1024 * 1024 * 1024): # 2GB default
159
  self.max_file_size = max_file_size
160
  self.supported_text_extensions = {'.txt', '.md', '.csv', '.json', '.xml'}
161
  self.processed_zip_count = 0
 
174
  # Check if the file is a Gradio File object or a string path
175
  file_path = file.name if isinstance(file, gr.File) else file
176
 
177
+ # Log the file path being processed
178
+ logger.info(f"Processing file: {file_path}")
179
+
180
  # Skip if it's a directory
181
  if os.path.isdir(file_path):
182
  logger.warning(f"Skipping directory: {file_path}")