Spaces:
Running

wh1223 commited on
Commit
9dbf1bf
·
verified ·
1 Parent(s): 3e25fd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -13,8 +13,7 @@ def text2story(text):
13
  messages = f"""Generate a concise story in exactly 100 words using these keywords: {text}.
14
  The story must contain:
15
  - Beginning, middle, end
16
- - Character development
17
- - At least 3 story elements"""
18
  text_to_story_model= pipeline("text-generation", model="mosaicml/mpt-7b-storywriter", trust_remote_code=True)
19
  story_text = text_to_story_model(
20
  messages,
 
13
  messages = f"""Generate a concise story in exactly 100 words using these keywords: {text}.
14
  The story must contain:
15
  - Beginning, middle, end
16
+ - Character development"""
 
17
  text_to_story_model= pipeline("text-generation", model="mosaicml/mpt-7b-storywriter", trust_remote_code=True)
18
  story_text = text_to_story_model(
19
  messages,