Leo Liu commited on
Commit
6198e5d
·
verified ·
1 Parent(s): 15e4fc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -17,9 +17,8 @@ def img2text(url):
17
  # text2story
18
  def text2story(text):
19
  # 优化提示词模板(使用统一的分隔符)
20
- prompt_template = """[PROMPT_START]
21
  Write a children's story for ages 3-10 based on: {text}
22
-
23
  Requirements:
24
  1. Use simple words (1st-3rd grade level)
25
  2. Main character must be an animal
 
17
  # text2story
18
  def text2story(text):
19
  # 优化提示词模板(使用统一的分隔符)
20
+ prompt_template = f"""[PROMPT_START]
21
  Write a children's story for ages 3-10 based on: {text}
 
22
  Requirements:
23
  1. Use simple words (1st-3rd grade level)
24
  2. Main character must be an animal