Spaces:
Sleeping
Sleeping
修改提示
Browse files- crazy_functions/解析项目源代码.py +0 -16
crazy_functions/解析项目源代码.py
CHANGED
@@ -42,22 +42,6 @@ def 解析源代码新(file_manifest, project_folder, llm_kwargs, plugin_kwargs,
|
|
42 |
chatbot.append(("完成?", "逐个文件分析已完成。" + res + "\n\n正在开始汇总。"))
|
43 |
yield from update_ui(chatbot=chatbot, history=history_to_return) # 刷新界面
|
44 |
|
45 |
-
############################## <存储中间数据进行调试> ##################################
|
46 |
-
|
47 |
-
# def objdump(obj):
|
48 |
-
# import pickle
|
49 |
-
# with open('objdump.tmp', 'wb+') as f:
|
50 |
-
# pickle.dump(obj, f)
|
51 |
-
# return
|
52 |
-
|
53 |
-
# def objload():
|
54 |
-
# import pickle, os
|
55 |
-
# if not os.path.exists('objdump.tmp'):
|
56 |
-
# return
|
57 |
-
# with open('objdump.tmp', 'rb') as f:
|
58 |
-
# return pickle.load(f)
|
59 |
-
# objdump([report_part_1, gpt_response_collection, history_to_return, file_manifest, project_folder, fp, llm_kwargs, chatbot])
|
60 |
-
|
61 |
############################## <第二步,综合,单线程,分组+迭代处理> ##################################
|
62 |
batchsize = 16 # 10个文件为一组
|
63 |
report_part_2 = []
|
|
|
42 |
chatbot.append(("完成?", "逐个文件分析已完成。" + res + "\n\n正在开始汇总。"))
|
43 |
yield from update_ui(chatbot=chatbot, history=history_to_return) # 刷新界面
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
############################## <第二步,综合,单线程,分组+迭代处理> ##################################
|
46 |
batchsize = 16 # 10个文件为一组
|
47 |
report_part_2 = []
|