add debug info
Browse files- app.py +1 -1
- simulation.py +1 -1
app.py
CHANGED
@@ -37,7 +37,7 @@ def run_simulation(scene, model, mode, prompt, history, request: gr.Request):
|
|
37 |
time.sleep(5)
|
38 |
status = get_task_status(task_id)
|
39 |
# OSS上的结果文件夹路径,不再检查本地路径是否存在
|
40 |
-
result_folder = clean_oss_result_path(status.get("result", f"gradio_demo/tasks/{task_id}"))
|
41 |
|
42 |
except Exception as e:
|
43 |
log_submission(scene, prompt, model, user_ip, str(e))
|
|
|
37 |
time.sleep(5)
|
38 |
status = get_task_status(task_id)
|
39 |
# OSS上的结果文件夹路径,不再检查本地路径是否存在
|
40 |
+
result_folder = clean_oss_result_path(status.get("result", f"gradio_demo/tasks/{task_id}"), task_id)
|
41 |
|
42 |
except Exception as e:
|
43 |
log_submission(scene, prompt, model, user_ip, str(e))
|
simulation.py
CHANGED
@@ -199,7 +199,7 @@ def create_final_video_from_oss_images(result_folder: str, task_id: str, request
|
|
199 |
最终视频文件路径
|
200 |
"""
|
201 |
# 使用统一的路径清理函数
|
202 |
-
cleaned_result_folder = clean_oss_result_path(result_folder)
|
203 |
|
204 |
# 获取图片文件夹路径
|
205 |
image_folder = os.path.join(cleaned_result_folder, "images").replace('\\', '/')
|
|
|
199 |
最终视频文件路径
|
200 |
"""
|
201 |
# 使用统一的路径清理函数
|
202 |
+
cleaned_result_folder = clean_oss_result_path(result_folder, task_id)
|
203 |
|
204 |
# 获取图片文件夹路径
|
205 |
image_folder = os.path.join(cleaned_result_folder, "images").replace('\\', '/')
|