Spaces:
Running
Running
Update index.html
Browse files- index.html +3 -4
index.html
CHANGED
@@ -34,10 +34,9 @@ pipeline = transformers.pipeline
|
|
34 |
pipe = await pipeline('translation', 'Xenova/nllb-200-distilled-600M')
|
35 |
|
36 |
async def generate(text):
|
37 |
-
return await pipe(text,
|
38 |
-
|
39 |
-
|
40 |
-
})
|
41 |
|
42 |
demo = gr.Interface(
|
43 |
generate,
|
|
|
34 |
pipe = await pipeline('translation', 'Xenova/nllb-200-distilled-600M')
|
35 |
|
36 |
async def generate(text):
|
37 |
+
return await pipe(text,
|
38 |
+
src_lang = "eng_Latn",
|
39 |
+
tgt_lang = "fra_Latn",)
|
|
|
40 |
|
41 |
demo = gr.Interface(
|
42 |
generate,
|