Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import torch
|
|
2 |
import gradio as gr
|
3 |
from transformers import pipeline
|
4 |
import json
|
5 |
-
|
6 |
# model_path = "C:\\Users\\abdul\\Documents\\genaiproj\\genai\\Models\models--facebook--nllb-200-distilled-600M\\snapshots\\f8d333a098d19b4fd9a8b18f94170487ad3f821d"
|
7 |
text_translator = pipeline("translation", model="facebook/nllb-200-distilled-600M", torch_dtype=torch.bfloat16)
|
8 |
# text_translator = pipeline("translation", model=model_path, torch_dtype=torch.bfloat16)
|
|
|
2 |
import gradio as gr
|
3 |
from transformers import pipeline
|
4 |
import json
|
5 |
+
#test
|
6 |
# model_path = "C:\\Users\\abdul\\Documents\\genaiproj\\genai\\Models\models--facebook--nllb-200-distilled-600M\\snapshots\\f8d333a098d19b4fd9a8b18f94170487ad3f821d"
|
7 |
text_translator = pipeline("translation", model="facebook/nllb-200-distilled-600M", torch_dtype=torch.bfloat16)
|
8 |
# text_translator = pipeline("translation", model=model_path, torch_dtype=torch.bfloat16)
|