Karan0310 commited on
Commit
38d4ffe
·
verified ·
1 Parent(s): c2be83d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -24,7 +24,8 @@ Request.__get_pydantic_core_schema__ = get_pydantic_core_schema
24
  try:
25
  lang_detector = pipeline("text-classification", model="papluca/xlm-roberta-base-language-detection")
26
  #text_translator = pipeline("translation", model="facebook/nllb-200-distilled-600M", torch_dtype=torch.bfloat16)
27
- text_translator = pipeline("translation", model="facebook/nllb-200-distilled-600M")
 
28
  print("🚀 AI Translation Hub initialized successfully!")
29
  except Exception as e:
30
  print(f"⚠️ Error initializing models: {e}")
 
24
  try:
25
  lang_detector = pipeline("text-classification", model="papluca/xlm-roberta-base-language-detection")
26
  #text_translator = pipeline("translation", model="facebook/nllb-200-distilled-600M", torch_dtype=torch.bfloat16)
27
+ #text_translator = pipeline("translation", model="facebook/nllb-200-distilled-600M")
28
+ text_translator = pipeline("translation", model="facebook/nllb-200-418M")
29
  print("🚀 AI Translation Hub initialized successfully!")
30
  except Exception as e:
31
  print(f"⚠️ Error initializing models: {e}")