Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -165,7 +165,6 @@ def process_directory(directory, partial_paths=None, file_paths=None):
|
|
| 165 |
with open(file_path, 'rb') as f:
|
| 166 |
if file_ext in ['.rst', '.md', '.txt', '.html', '.json', '.yaml', '.py']:
|
| 167 |
text = f.read().decode('utf-8')
|
| 168 |
-
print(f"Extracted text from {file_path}:\n{text[:50]}...\n")
|
| 169 |
elif file_ext in ['.svg']:
|
| 170 |
text = f"SVG file content from {file_path}"
|
| 171 |
elif file_ext in ['.png', '.ico']:
|
|
|
|
| 165 |
with open(file_path, 'rb') as f:
|
| 166 |
if file_ext in ['.rst', '.md', '.txt', '.html', '.json', '.yaml', '.py']:
|
| 167 |
text = f.read().decode('utf-8')
|
|
|
|
| 168 |
elif file_ext in ['.svg']:
|
| 169 |
text = f"SVG file content from {file_path}"
|
| 170 |
elif file_ext in ['.png', '.ico']:
|