Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,12 +6,6 @@ from transformers import pipeline
|
|
| 6 |
|
| 7 |
text_translation = pipeline("translation", model="facebook/nllb-200-distilled-600M", torch_dtype=torch.float16)
|
| 8 |
|
| 9 |
-
# text = "Hello, How are you ?"
|
| 10 |
-
|
| 11 |
-
# translation = text_translation(text, src_lang="eng_Latn", tgt_lang="fra_Latn")
|
| 12 |
-
|
| 13 |
-
# print(translation)
|
| 14 |
-
|
| 15 |
# Load the JSON data from the file
|
| 16 |
with open('language.json', 'r') as file:
|
| 17 |
language_data = json.load(file)
|
|
|
|
| 6 |
|
| 7 |
text_translation = pipeline("translation", model="facebook/nllb-200-distilled-600M", torch_dtype=torch.float16)
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
# Load the JSON data from the file
|
| 10 |
with open('language.json', 'r') as file:
|
| 11 |
language_data = json.load(file)
|