Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -170,7 +170,7 @@ def process_file_content(file_info, owner, repo, is_hf=False):
|
|
| 170 |
size = len(content_raw)
|
| 171 |
file_extension = file_path.split('.')[-1] if '.' in file_path else ''
|
| 172 |
mime_type, _ = mimetypes.guess_type(file_path)
|
| 173 |
-
is_text = (mime_type and mime_type.startswith('text')) or file_extension in ['py', 'md', 'txt', 'js', 'html', 'css', 'json']
|
| 174 |
|
| 175 |
if is_text:
|
| 176 |
try:
|
|
|
|
| 170 |
size = len(content_raw)
|
| 171 |
file_extension = file_path.split('.')[-1] if '.' in file_path else ''
|
| 172 |
mime_type, _ = mimetypes.guess_type(file_path)
|
| 173 |
+
is_text = (mime_type and mime_type.startswith('text')) or file_extension in ['py', 'md', 'txt', 'js', 'html', 'css', 'json'] or "Dockerfile" in file_path
|
| 174 |
|
| 175 |
if is_text:
|
| 176 |
try:
|