Spaces:
Runtime error
Runtime error
Update app.py
Browse files80 unmodified lines8182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811967 unmodified lines18718818919019119219380 unmodified lineslocal_files_only=False)# print("=" * 80)# print("Warming up pipeline (loading Gemma text encoder)...")# print("=" * 80)# # Do a dummy warmup to load all models including Gemma# import tempfile# import os# warmup_output = tempfile.mktemp(suffix=".mp4")# try:# pipeline(# prompt="warmup",# negative_prompt="",# output_path=warmup_output,# seed=42,# height=256,# width=256,# num_frames=9,# frame_rate=8,# num_inference_steps=1,# cfg_guidance_scale=1.0,# images=[],# tiling_config=TilingConfig.default(),# )# # Clean up warmup output# if os.path.exists(warmup_output):# os.remove(warmup_output)# except Exception as e:# print(f"Warmup completed with note: {e}")# print("=" * 80)# print("Pipeline fully loaded and ready!")# print("=" * 80)@spaces.GPU(duration=300)def generate_video(input_image,67 unmodified lineswith gr.Row():with gr.Column():input_image = gr.Image(label="Input Image",type="pil",)80 unmodified lines81828384858667 unmodified lines15415515615715815916080 unmodified lineslocal_files_only=False)@spaces.GPU(duration=300)def generate_video(input_image,67 unmodified lineswith gr.Row():with gr.Column():input_image = gr.Image(label="Input Image (Optional)",type="pil",)
app.py+1-34