Spaces:
Build error
Build error
| from typing import List | |
| import torch # Import PyTorch to check for GPU availability | |
| # Check if GPU is available and set the device accordingly | |
| if torch.cuda.is_available(): | |
| device = torch.device("cuda") | |
| else: | |
| device = torch.device("cpu") | |
| source_path = None | |
| target_path = None | |
| output_path = None | |
| frame_processors: List[str] = [] | |
| keep_fps = None | |
| keep_audio = None | |
| keep_frames = None | |
| many_faces = None | |
| video_encoder = None | |
| video_quality = None | |
| max_memory = None | |
| execution_providers: List[str] = [] | |
| execution_threads = None | |
| headless = None | |
| log_level = 'error' | |