File size: 341 Bytes
4dd3e5c a469e3a 3b5865c 4dd3e5c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#!/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='google/mt5-small')
demo = gr.Interface.from_pipeline(pipeline)
demo.launch() |