Spaces:
Runtime error
Runtime error
Update app.py
Browse files128 unmodified lines129130131132133134135136128 unmodified linesreturn int(new_h), int(new_w)@spaces.GPUdef generate(prompt, negative_prompt, input_image_filepath, input_video_filepath,height_ui, width_ui, mode,ui_steps, duration_ui,128 unmodified lines129130131132133134135136137138139140141142143144145146128 unmodified linesreturn int(new_h), int(new_w)def get_duration(prompt, negative_prompt, input_image_filepath, input_video_filepath,height_ui, width_ui, mode,ui_steps, duration_ui,ui_frames_to_use,seed_ui, randomize_seed, ui_guidance_scale, improve_texture_flag,progress):if duration_ui > 7:return 75else:return 60@spaces.GPU(duration=get_duration)def generate(prompt, negative_prompt, input_image_filepath, input_video_filepath,height_ui, width_ui, mode,ui_steps, duration_ui,
app.py+11-1