Spaces:
Paused
Paused
Update app.py
Browse files28 unmodified lines29303132333411 unmodified lines4647484950515228 unmodified linesdef end_session(req: gr.Request):user_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_images(images: List[Tuple[Image.Image, str]]) -> List[Image.Image]:"""Preprocess a list of input images for multi-image 3D generation.28 unmodified lines293031323334353611 unmodified lines4849505152535428 unmodified linesdef end_session(req: gr.Request):user_dir = os.path.join(TMP_DIR, str(req.session_hash))shutil.rmtree(user_dir)@spaces.GPUdef 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.GPUdef preprocess_images(images: List[Tuple[Image.Image, str]]) -> List[Image.Image]:"""Preprocess a list of input images for multi-image 3D generation.
app.py+3-1