refactor: 将prediction_results目录移动到webui目录下,优化项目结构
This commit is contained in:
parent
609235c077
commit
ca2502757f
@ -126,7 +126,7 @@ def save_prediction_results(file_path, prediction_type, prediction_results, actu
|
|||||||
"""保存预测结果到文件"""
|
"""保存预测结果到文件"""
|
||||||
try:
|
try:
|
||||||
# 创建预测结果目录
|
# 创建预测结果目录
|
||||||
results_dir = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'prediction_results')
|
results_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'prediction_results')
|
||||||
os.makedirs(results_dir, exist_ok=True)
|
os.makedirs(results_dir, exist_ok=True)
|
||||||
|
|
||||||
# 生成文件名
|
# 生成文件名
|
||||||
|
|||||||
2239
webui/prediction_results/prediction_20250826_163800.json
Normal file
2239
webui/prediction_results/prediction_20250826_163800.json
Normal file
File diff suppressed because it is too large
Load Diff
2239
webui/prediction_results/prediction_20250826_164030.json
Normal file
2239
webui/prediction_results/prediction_20250826_164030.json
Normal file
File diff suppressed because it is too large
Load Diff
2239
webui/prediction_results/prediction_20250826_164422.json
Normal file
2239
webui/prediction_results/prediction_20250826_164422.json
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user