sandeepmajumdar commited on
Commit
6bc5c91
·
1 Parent(s): 9a9a4a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
4
  def convert(Sentence):
5
  model = pipeline('text-generation', model='bigscience/bloom-1b1')
6
  result = model(Sentence)
7
- return result[0]['label'])
8
 
9
  with gr.Blocks() as bls:
10
  gr.Markdown("Here is a Text Generation app")
 
4
  def convert(Sentence):
5
  model = pipeline('text-generation', model='bigscience/bloom-1b1')
6
  result = model(Sentence)
7
+ return result[0]
8
 
9
  with gr.Blocks() as bls:
10
  gr.Markdown("Here is a Text Generation app")