Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ torch.manual_seed(1)
|
|
| 51 |
|
| 52 |
# Supress some unnecessary warnings when loading the CLIPTextModel
|
| 53 |
logging.set_verbosity_error()
|
| 54 |
-
|
| 55 |
# Set device
|
| 56 |
#if "mps" == torch_device: os.environ['PYTORCH_ENABLE_MPS_FALLBACK'] = "1"
|
| 57 |
|
|
|
|
| 51 |
|
| 52 |
# Supress some unnecessary warnings when loading the CLIPTextModel
|
| 53 |
logging.set_verbosity_error()
|
| 54 |
+
torch_device = "cpu"
|
| 55 |
# Set device
|
| 56 |
#if "mps" == torch_device: os.environ['PYTORCH_ENABLE_MPS_FALLBACK'] = "1"
|
| 57 |
|