#!/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()