Update app.py
Browse files
app.py
CHANGED
@@ -86,17 +86,16 @@ def generate_story(comments, temperature=0.7):
|
|
86 |
model="gpt-3.5-turbo",
|
87 |
messages=[{"role": "system", "content": f"""
|
88 |
|
89 |
-
Read all the comments, understand the emotions people are feeling and pick
|
90 |
-
and create a story in first person
|
91 |
-
|
92 |
-
simple and a bit profound but overall simple words. Give more weight to the comments that
|
93 |
come earlier in sequence. The comments are given here: {comments_text}"""},
|
94 |
{"role": "assistant", "content": """
|
95 |
ignore the comment which has lyrics of the song,
|
96 |
ignore all comments similar to 'anyone in 2024', Keep the story randomly between 50-120 words.
|
97 |
-
dont mention the
|
98 |
sometimes include bits where you tell how this song makes you feel. be very nostalgic about a feeling or a place this
|
99 |
-
takes you to. half the times end the story with a hopeful future or a dark end or humorous.. choose randomly. dont start the story with when you
|
100 |
,temperature=temperature)
|
101 |
return completion.choices[0].message.content
|
102 |
|
|
|
86 |
model="gpt-3.5-turbo",
|
87 |
messages=[{"role": "system", "content": f"""
|
88 |
|
89 |
+
Read all the comments, understand the emotions people are feeling and pick an emotion which is the most dominant
|
90 |
+
and create a story in first person keep the words
|
91 |
+
simple and a bit profound. Give more weight to the comments that
|
|
|
92 |
come earlier in sequence. The comments are given here: {comments_text}"""},
|
93 |
{"role": "assistant", "content": """
|
94 |
ignore the comment which has lyrics of the song,
|
95 |
ignore all comments similar to 'anyone in 2024', Keep the story randomly between 50-120 words.
|
96 |
+
dont mention the emotion chosen just start the story.
|
97 |
sometimes include bits where you tell how this song makes you feel. be very nostalgic about a feeling or a place this
|
98 |
+
takes you to. half the times end the story with a hopeful future or a dark end or humorous.. choose randomly. dont start the story with when you first heard this song"""}]
|
99 |
,temperature=temperature)
|
100 |
return completion.choices[0].message.content
|
101 |
|