Spaces:
Runtime error
Runtime error
Update app.py
Browse files7 unmodified lines8910111213147 unmodified linesfrom pathlib import PathPath("tmp").mkdir(exist_ok=True)device = "cuda" if torch.cuda.is_available() else "cpu"print(f"Device is {device}")torch_type = torch.float16 if device == "cuda" else torch.float327 unmodified lines89101112137 unmodified linesfrom pathlib import PathPath("tmp").mkdir(exist_ok=True)device = "cuda" if torch.cuda.is_available() else "cpu"print(f"Device is {device}")torch_type = torch.float16 if device == "cuda" else torch.float32
app.py-1