matt-le-kat commited on
Commit
5e146d9
·
1 Parent(s): 28e806c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -1,3 +1,8 @@
1
  import gradio as gr
2
 
3
- gr.Interface.load("gpt2").launch():
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ pipe = pipeline('text-generation')
4
+ input = gr.Interface.TextBox()
5
+ output = gr.Interface.TextBox()
6
+
7
+ intf = gr.Interface(fn = pipe, inputs = input, outputs = output)
8
+ intf.launch()