forked from 77media/video-flow
太多分镜失败 错误提示
This commit is contained in:
parent
473938250c
commit
fc9005e9a6
@ -6,4 +6,4 @@ NEXT_PUBLIC_CUT_URL = https://smartcut.movieflow.ai
|
||||
# NEXT_PUBLIC_JAVA_URL = https://test.java.movieflow.ai
|
||||
# NEXT_PUBLIC_BASE_URL = https://test.video.movieflow.ai
|
||||
# 失败率
|
||||
NEXT_PUBLIC_ERROR_CONFIG = 0.5
|
||||
NEXT_PUBLIC_ERROR_CONFIG = 0.1
|
||||
@ -213,10 +213,10 @@ export function useWorkflowData({ onEditPlanGenerated }: UseWorkflowDataProps =
|
||||
|
||||
useEffect(() => {
|
||||
// 主动触发剪辑
|
||||
if (canGoToCut && taskObject.currentStage === 'video') {
|
||||
if (canGoToCut && taskObject.currentStage === 'video' && !isShowError) {
|
||||
generateEditPlan(retryCount - 1);
|
||||
}
|
||||
}, [canGoToCut, taskObject.currentStage, retryCount]);
|
||||
}, [canGoToCut, taskObject.currentStage, retryCount, isShowError]);
|
||||
|
||||
useEffect(() => {
|
||||
// 加载剪辑计划结束 并且 失败了 重试
|
||||
@ -227,7 +227,7 @@ export function useWorkflowData({ onEditPlanGenerated }: UseWorkflowDataProps =
|
||||
|
||||
useEffect(() => {
|
||||
if (isShowError) {
|
||||
window.msg.error('Too many failed storyboards, unable to execute automatic editing.', 3000);
|
||||
window.msg.error('Too many failed storyboards, unable to execute automatic editing.', 8000);
|
||||
}
|
||||
}, [isShowError]);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user