File size: 313 Bytes
0be7395
e509bb0
 
27b1577
e509bb0
27b1577
e509bb0
 
 
1
2
3
4
5
6
7
8
9
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()