rahul7star commited on
Commit
8a3669f
·
verified ·
1 Parent(s): f8c5da7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -143,7 +143,7 @@ def get_or_load_model():
143
  try:
144
  MODEL = ChatterboxMultilingualTTS.from_pretrained(DEVICE)
145
  if hasattr(MODEL, 'to') and str(MODEL.device) != DEVICE:
146
- MODEL.to(DEVICE)
147
  print(f"Model loaded successfully. Internal device: {getattr(MODEL, 'device', 'N/A')}")
148
  except Exception as e:
149
  print(f"Error loading model: {e}")
 
143
  try:
144
  MODEL = ChatterboxMultilingualTTS.from_pretrained(DEVICE)
145
  if hasattr(MODEL, 'to') and str(MODEL.device) != DEVICE:
146
+ MODEL.to("cpu")
147
  print(f"Model loaded successfully. Internal device: {getattr(MODEL, 'device', 'N/A')}")
148
  except Exception as e:
149
  print(f"Error loading model: {e}")