Update Transcribe English Audio into any Language.py
Browse files
Transcribe English Audio into any Language.py
CHANGED
|
@@ -15,7 +15,7 @@ translator = pipeline(task="translation",
|
|
| 15 |
model="facebook/nllb-200-distilled-600M",
|
| 16 |
torch_dtype=torch.bfloat16)
|
| 17 |
|
| 18 |
-
flores_200_df = pd.read_csv("
|
| 19 |
flores_200 = dict(zip(flores_200_df['Language'],flores_200_df['FLORES_200_code']))
|
| 20 |
flores_200_languages = list(flores_200.keys())
|
| 21 |
|
|
|
|
| 15 |
model="facebook/nllb-200-distilled-600M",
|
| 16 |
torch_dtype=torch.bfloat16)
|
| 17 |
|
| 18 |
+
flores_200_df = pd.read_csv("Flores200_language_codes.csv", encoding='cp1252')
|
| 19 |
flores_200 = dict(zip(flores_200_df['Language'],flores_200_df['FLORES_200_code']))
|
| 20 |
flores_200_languages = list(flores_200.keys())
|
| 21 |
|