Preetham04 commited on
Commit
a3ade2b
·
verified ·
1 Parent(s): af4e1f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -26,7 +26,9 @@ pipe = pipeline("text-generation", model="Preetham04/text-generation")
26
 
27
 
28
  def generate(text):
29
- return pipe(text)[0]["title"]
 
 
30
 
31
 
32
  with gr.Blocks() as demo:
 
26
 
27
 
28
  def generate(text):
29
+ predictions = pipe(text)
30
+ return {p[0]["title"] for p in predictions}
31
+ #return pipe(text)[0]["title"]
32
 
33
 
34
  with gr.Blocks() as demo: