import gradio as gr | |
# Use a pipeline as a high-level helper | |
from transformers import pipeline | |
pipe = pipeline("text2text-generation", model="yeye776/t5-OndeviceAI-HomeIoT") | |
# gr.load("models/yeye776/t5-OndeviceAI-HomeIoT").launch() | |
iface = gradio.Interface(fn=pipe, inputs="text", outputs="text") | |
iface.launch() |