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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,8 +27,8 @@ pipe = pipeline("text-generation", model="Preetham04/text-generation")
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:
 
27
 
28
  def generate(text):
29
  predictions = pipe(text)
30
+ print(predictions) # To see the structure of predictions
31
+ return {p["generated_text"] for p in predictions}
32
 
33
 
34
  with gr.Blocks() as demo: