PeteBleackley
New t5 based model
c5af2f5
raw
history blame contribute delete
420 Bytes
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Aug 11 10:11:53 2024
@author: peter
"""
import gradio as gr
import tokenizers
import transformers
pipeline = transformers.pipeline('translation_en_to_ha',
model='PeteBleackley/t5-small-eng-hau',
tokenizer='google-t5/t5-small')
demo = gr.Interface.from_pipeline(pipeline)
demo.launch()