osanseviero commited on
Commit
4f3084f
1 Parent(s): a3210e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ pipe = pipeline("text2text-generation", model="google/flan-t5-large")
7
 
8
  def inference(text):
9
  output = pipe(text)
10
- return output["generated_text"]
11
 
12
  io = gr.Interface(inference, gr.Textbox(lines=3), gr.Textbox(lines=3))
13
  io.launch()
 
7
 
8
  def inference(text):
9
  output = pipe(text)
10
+ return output[0]["generated_text"]
11
 
12
  io = gr.Interface(inference, gr.Textbox(lines=3), gr.Textbox(lines=3))
13
  io.launch()