tatianija commited on
Commit
202098f
·
verified ·
1 Parent(s): 724a157

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -489,7 +489,7 @@ class IntelligentAgent:
489
  # Check if file exists
490
  if not os.path.exists(local_path):
491
  if self.debug:
492
- print(f"File not found: {file_path}")
493
  return image_files, audio_files, code_files
494
 
495
  # Get file extension
@@ -508,14 +508,14 @@ class IntelligentAgent:
508
 
509
  # Categorize the file
510
  if is_image:
511
- image_files.append(file_path)
512
  elif is_audio:
513
- audio_files.append(file_path)
514
  elif is_code:
515
- code_files.append(file_path)
516
  else:
517
  # Default to code/text for unknown types
518
- code_files.append(file_path)
519
 
520
  if self.debug:
521
  print(f"Processed file: {file_name} -> {'image' if is_image else 'audio' if is_audio else 'code'}")
 
489
  # Check if file exists
490
  if not os.path.exists(local_path):
491
  if self.debug:
492
+ print(f"File not found: {local_path}")
493
  return image_files, audio_files, code_files
494
 
495
  # Get file extension
 
508
 
509
  # Categorize the file
510
  if is_image:
511
+ image_files.append(local_path)
512
  elif is_audio:
513
+ audio_files.append(local_path)
514
  elif is_code:
515
+ code_files.append(local_path)
516
  else:
517
  # Default to code/text for unknown types
518
+ code_files.append(local_path)
519
 
520
  if self.debug:
521
  print(f"Processed file: {file_name} -> {'image' if is_image else 'audio' if is_audio else 'code'}")