Spaces:
Running
Running
Update index.html
Browse files- 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 |
-
|
|
|
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 |
|