Update app.py
Browse files
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 |
-
|
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}")
|