sandeepmajumdar commited on
Commit
ef1acb7
1 Parent(s): e7695c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
2
  from transformers import pipeline
3
 
4
  def convert(prompt):
5
- model = pipeline('text-generation', model='bigscience/bloom')
6
- result = model(prompt, max_length=40)
7
  return result[0]['generated_text']
8
 
9
  with gr.Blocks() as bls:
 
2
  from transformers import pipeline
3
 
4
  def convert(prompt):
5
+ model = pipeline('text-generation', model='bigscience/bloom-1b1')
6
+ result = model(prompt, max_length=200)
7
  return result[0]['generated_text']
8
 
9
  with gr.Blocks() as bls: