Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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: {
|
| 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(
|
| 512 |
elif is_audio:
|
| 513 |
-
audio_files.append(
|
| 514 |
elif is_code:
|
| 515 |
-
code_files.append(
|
| 516 |
else:
|
| 517 |
# Default to code/text for unknown types
|
| 518 |
-
code_files.append(
|
| 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'}")
|