Leo Liu commited on
Commit
1c36220
·
verified ·
1 Parent(s): f905c6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -13,8 +13,7 @@ def img2text(url):
13
  def text2story(text):
14
  pipe = pipeline("text-generation",
15
  model="pranavpsv/genre-story-generator-v2")
16
- prompt_for_children = f"""Generate a fairy tale for children aged 3-10 based on: {text}.
17
- Story: Once upon a time,"""
18
 
19
  generation_params = {
20
  "max_new_tokens": 200,
 
13
  def text2story(text):
14
  pipe = pipeline("text-generation",
15
  model="pranavpsv/genre-story-generator-v2")
16
+ prompt_for_children = f"""Generate a fairy tale for children aged 3-10 based on: {text}"""
 
17
 
18
  generation_params = {
19
  "max_new_tokens": 200,