Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -379,8 +379,8 @@ with gr.Blocks(title = "Dreamoving",
|
|
379 |
tab1.select(fn=tab_func_prompt, outputs=[ref_video, input_mode]) # prompt mode
|
380 |
|
381 |
def async_process(user_id, request_id, input_mode, ref_image_path, ref_video_path, input_prompt='', prompt_template='',model_id=False):
|
382 |
-
if
|
383 |
-
|
384 |
|
385 |
# parm-chheck
|
386 |
check_note_info = myHumanGen.valid_check(user_id, request_id, input_mode, ref_image_path, ref_video_path, input_prompt, prompt_template,model_id)
|
@@ -393,8 +393,8 @@ with gr.Blocks(title = "Dreamoving",
|
|
393 |
|
394 |
return refresh_video(user_id, request_id)
|
395 |
else:
|
396 |
-
|
397 |
-
return
|
398 |
|
399 |
run_button.click(fn=async_process, inputs=[uuid, request_id, input_mode, ref_image, ref_video, prompt, prompt_template, model_id], outputs=[uuid, user_notes, output_video0, output_video1, output_video2, output_video3])
|
400 |
|
|
|
379 |
tab1.select(fn=tab_func_prompt, outputs=[ref_video, input_mode]) # prompt mode
|
380 |
|
381 |
def async_process(user_id, request_id, input_mode, ref_image_path, ref_video_path, input_prompt='', prompt_template='',model_id=False):
|
382 |
+
if user_id is None or user_id == '':
|
383 |
+
user_id = get_random_string()
|
384 |
|
385 |
# parm-chheck
|
386 |
check_note_info = myHumanGen.valid_check(user_id, request_id, input_mode, ref_image_path, ref_video_path, input_prompt, prompt_template,model_id)
|
|
|
393 |
|
394 |
return refresh_video(user_id, request_id)
|
395 |
else:
|
396 |
+
user_id, notes, video_0, video_1, video_2, video_3 = refresh_video(user_id, request_id)
|
397 |
+
return user_id, check_note_info, video_0, video_1, video_2, video_3
|
398 |
|
399 |
run_button.click(fn=async_process, inputs=[uuid, request_id, input_mode, ref_image, ref_video, prompt, prompt_template, model_id], outputs=[uuid, user_notes, output_video0, output_video1, output_video2, output_video3])
|
400 |
|