Update app.py
Browse files
app.py
CHANGED
@@ -109,15 +109,6 @@ if uploaded_image:
|
|
109 |
story_prompt = (
|
110 |
f"<|im_start|>system\n"
|
111 |
f"You are a children's book author. Create a 150-word story based on: {image_caption}\n"
|
112 |
-
"Include these elements:\n"
|
113 |
-
"- Friendly characters\n"
|
114 |
-
"- Simple vocabulary\n"
|
115 |
-
"- Positive lesson\n"
|
116 |
-
"- Clear story structure\n"
|
117 |
-
"<|im_end|>\n"
|
118 |
-
f"<|im_start|>user\n"
|
119 |
-
f"Write an engaging story suitable for ages 6-8.<|im_end|>\n"
|
120 |
-
f"<|im_start|>assistant\n"
|
121 |
)
|
122 |
|
123 |
# Generate story text
|
|
|
109 |
story_prompt = (
|
110 |
f"<|im_start|>system\n"
|
111 |
f"You are a children's book author. Create a 150-word story based on: {image_caption}\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
)
|
113 |
|
114 |
# Generate story text
|