PeteBleackley
commited on
Commit
•
4647d83
1
Parent(s):
a469e3a
Explicitly state tokenizer
Browse files
app.py
CHANGED
@@ -11,7 +11,8 @@ import tokenizers
|
|
11 |
import transformers
|
12 |
|
13 |
pipeline = transformers.pipeline('translation_en_to_ha',
|
14 |
-
model='PeteBleackley/t5-small-eng-hau'
|
|
|
15 |
|
16 |
demo = gr.Interface.from_pipeline(pipeline)
|
17 |
demo.launch()
|
|
|
11 |
import transformers
|
12 |
|
13 |
pipeline = transformers.pipeline('translation_en_to_ha',
|
14 |
+
model='PeteBleackley/t5-small-eng-hau',
|
15 |
+
tokenizer='google-t5/t5-small')
|
16 |
|
17 |
demo = gr.Interface.from_pipeline(pipeline)
|
18 |
demo.launch()
|