diff --git a/ai/utils/show_process.py b/ai/utils/show_process.py index 4cfbdb6..ac77ded 100644 --- a/ai/utils/show_process.py +++ b/ai/utils/show_process.py @@ -42,7 +42,8 @@ def show_main_process(zz_code=None, day_delta=3): print('message:', message) print('tokens:', tokens) # 获取排片数据 - result_obj = json.loads(result) + print('result:', result) + result_obj = json.loads(result.strip()) print('result_obj:', result_obj, type(result_obj)) # 预测排片数据 _show = result_obj['show'].replace('```', '').replace('csv', '').strip()