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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,8 +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
- 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}")
 
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}")