hyejoo commited on
Commit
0be7395
1 Parent(s): 5e9d4ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -1,8 +1,5 @@
1
- !pip install transformers
2
 
3
- import requests
4
- from transformers import pipeline
5
-
6
- pipe_home = pipeline("text2text-generation", model="yeye776/t5-OndeviceAI-HomeIoT")
7
- iface = gradio.Interface(fn=pipe_home, inputs="text", outputs="text")
8
- iface.launch()
 
1
+ import gradio as gr
2
 
3
+ gr.load("models/yeye776/t5-OndeviceAI-HomeIoT").launch()
4
+ # iface = gradio.Interface(fn=pipe_home, inputs="text", outputs="text")
5
+ # iface.launch()