reach-vb HF staff commited on
Commit
df3e34d
1 Parent(s): ea13ae4

Update index.html

Browse files
Files changed (1) hide show
  1. 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
- "src_lang": "eng_Latn",
39
- "tgt_lang": "fra_Latn",
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,