Spaces:
Paused
Paused
Update app.py
Browse files31 unmodified lines3233343536373811 unmodified lines5051525354555631 unmodified linesuser_dir = os.path.join(TMP_DIR, str(req.session_hash))shutil.rmtree(user_dir)@spaces.GPU()def preprocess_image(image: Image.Image) -> Image.Image:"""Preprocess the input image for 3D generation.11 unmodified linesprocessed_image = pipeline.preprocess_image(image)return processed_image@spaces.GPU()def preprocess_videos(video: str) -> List[Tuple[Image.Image, str]]:"""Preprocess the input video for multi-image 3D generation.31 unmodified lines32333435363711 unmodified lines49505152535431 unmodified linesuser_dir = os.path.join(TMP_DIR, str(req.session_hash))shutil.rmtree(user_dir)def preprocess_image(image: Image.Image) -> Image.Image:"""Preprocess the input image for 3D generation.11 unmodified linesprocessed_image = pipeline.preprocess_image(image)return processed_imagedef preprocess_videos(video: str) -> List[Tuple[Image.Image, str]]:"""Preprocess the input video for multi-image 3D generation.
app.py-2