hyejoo's picture
Update app.py
e509bb0 verified
raw
history blame
No virus
313 Bytes
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()