reach-vb HF staff commited on
Commit
dc91189
1 Parent(s): 679df31

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -1
index.html CHANGED
@@ -33,7 +33,8 @@ import gradio as gr
33
  transformers = await import_transformers_js()
34
  pipeline = transformers.pipeline
35
  pipe = await pipeline('translation', 'Xenova/t5-small')
36
- pipeline.task = "translation_en_to_fr"
 
37
  async def generate(text):
38
  return await pipe(text,)
39
 
 
33
  transformers = await import_transformers_js()
34
  pipeline = transformers.pipeline
35
  pipe = await pipeline('translation', 'Xenova/t5-small')
36
+ pipe.task = "translation_en_to_fr"
37
+
38
  async def generate(text):
39
  return await pipe(text,)
40