Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import torch
|
|
| 7 |
import spaces
|
| 8 |
|
| 9 |
# Initialize the AuraSR model
|
| 10 |
-
aura_sr = AuraSR.from_pretrained("fal-ai/AuraSR")
|
| 11 |
|
| 12 |
# Move the model to CUDA if available, otherwise keep it on CPU
|
| 13 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
|
| 7 |
import spaces
|
| 8 |
|
| 9 |
# Initialize the AuraSR model
|
| 10 |
+
aura_sr = AuraSR.from_pretrained("fal-ai/AuraSR", map_location=torch.device('cpu'))
|
| 11 |
|
| 12 |
# Move the model to CUDA if available, otherwise keep it on CPU
|
| 13 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|