Update app.py
Browse files1804 unmodified lines180518061807180818091810181118121813181418151804 unmodified linesdevice = "cuda:0" if torch.cuda.is_available() else "cpu"dtype = torch.float32 if "cpu" in device else torch.float16bark_processor = AutoProcessor.from_pretrained("suno/bark",cache_dir=os.path.join(now_dir,"tts","suno/bark"),torch_dtype=dtype)bark_model = BarkModel.from_pretrained("suno/bark",cache_dir=os.path.join(now_dir,"tts","suno/bark"),torch_dtype=dtype).to(device)# bark_model.enable_cpu_offload()1804 unmodified lines180518061807180818091810181118121813181418151804 unmodified linesdevice = "cuda:0" if torch.cuda.is_available() else "cpu"dtype = torch.float32 if "cpu" in device else torch.float16bark_processor = AutoProcessor.from_pretrained("suno/bark-small",cache_dir=os.path.join(now_dir,"tts","suno/bark"),torch_dtype=dtype)bark_model = BarkModel.from_pretrained("suno/bark-small",cache_dir=os.path.join(now_dir,"tts","suno/bark"),torch_dtype=dtype).to(device)# bark_model.enable_cpu_offload()
app.py+2-2