Spaces:
Runtime error
Runtime error
修改提示
Browse files
crazy_functions/解析项目源代码.py
CHANGED
|
@@ -12,7 +12,7 @@ def 解析源代码新(file_manifest, project_folder, llm_kwargs, plugin_kwargs,
|
|
| 12 |
sys_prompt_array = []
|
| 13 |
report_part_1 = []
|
| 14 |
|
| 15 |
-
assert len(file_manifest) <= 1024, "
|
| 16 |
############################## <第一步,逐个文件分析,多线程> ##################################
|
| 17 |
for index, fp in enumerate(file_manifest):
|
| 18 |
with open(fp, 'r', encoding='utf-8', errors='replace') as f:
|
|
|
|
| 12 |
sys_prompt_array = []
|
| 13 |
report_part_1 = []
|
| 14 |
|
| 15 |
+
assert len(file_manifest) <= 1024, "源文件太多(超过1024个), 请缩减输入文件的数量。或者,您也可以选择删除此行警告,并修改代码拆分file_manifest列表,从而实现分批次处理。"
|
| 16 |
############################## <第一步,逐个文件分析,多线程> ##################################
|
| 17 |
for index, fp in enumerate(file_manifest):
|
| 18 |
with open(fp, 'r', encoding='utf-8', errors='replace') as f:
|