AshwinSankar commited on
Commit
6df7a83
·
verified ·
1 Parent(s): 008725d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ SARVAM_LANGUAGES = INDIC_LANGUAGES
26
 
27
  # Model configurations with optimizations
28
  TORCH_DTYPE = torch.bfloat16 if torch.cuda.is_available() else torch.float32
29
- DEVICE_MAP = "cuda" if torch.cuda.is_available() else "cpu"
30
 
31
  indictrans_model = AutoModelForCausalLM.from_pretrained(
32
  "ai4bharat/IndicTrans3-beta",
 
26
 
27
  # Model configurations with optimizations
28
  TORCH_DTYPE = torch.bfloat16 if torch.cuda.is_available() else torch.float32
29
+ DEVICE_MAP = "0" if torch.cuda.is_available() else "cpu"
30
 
31
  indictrans_model = AutoModelForCausalLM.from_pretrained(
32
  "ai4bharat/IndicTrans3-beta",