RiH-137Rishi commited on
Commit
e246d3c
·
verified ·
1 Parent(s): b44cc33

Upload 3 files

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def home():
29
  # '''text --> prompt'''
30
 
31
  def generate(text:str):
32
- output = pipe(text, max_length=50, do_sample=True, temperature=0.7)
33
 
34
  #retuen the fgenerated text in json response
35
  return{"output":output[0]['generate']}
 
29
  # '''text --> prompt'''
30
 
31
  def generate(text:str):
32
+ output = pipe(text, do_sample=True, temperature=0.7)
33
 
34
  #retuen the fgenerated text in json response
35
  return{"output":output[0]['generate']}