Thea231 commited on
Commit
ffe1710
·
verified ·
1 Parent(s): 5fc2db0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ def img2text(url):
13
  # text2story
14
  def text2story(text):
15
  text_to_story_model = pipeline("text-generation",model="distilbert/distilgpt2")
16
- story_text = text_to_story_model(text,min_length=100,num_return_sequences=1)
17
  return story_text
18
 
19
  # text2audio
 
13
  # text2story
14
  def text2story(text):
15
  text_to_story_model = pipeline("text-generation",model="distilbert/distilgpt2")
16
+ story_text = text_to_story_model(text,max_length=100,num_return_sequences=1)
17
  return story_text
18
 
19
  # text2audio