Update app.py
Browse files
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,
|