Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse filestweak max size - decreased to 256 * 1024 bytes
app.py
CHANGED
@@ -78,7 +78,7 @@ def extract_repo_content(url, hf_token, hf_user):
|
|
78 |
file_summary = get_file_summary(file_path, file_type)
|
79 |
content = {"header": file_summary}
|
80 |
|
81 |
-
if file_type in SUPPORTED_FILE_TYPES and file_summary["size"] <=
|
82 |
try:
|
83 |
content["content"] = read_file_content(file_path)
|
84 |
except Exception as e:
|
|
|
78 |
file_summary = get_file_summary(file_path, file_type)
|
79 |
content = {"header": file_summary}
|
80 |
|
81 |
+
if file_type in SUPPORTED_FILE_TYPES and file_summary["size"] <= 32 * 1024:
|
82 |
try:
|
83 |
content["content"] = read_file_content(file_path)
|
84 |
except Exception as e:
|