Kumarkishalaya commited on
Commit
1f1eeb2
·
verified ·
1 Parent(s): b33d1fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -86,16 +86,15 @@ def generate_story(comments, temperature=0.7):
86
  model="gpt-3.5-turbo-0125",
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 yet heart touching. 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
 
 
86
  model="gpt-3.5-turbo-0125",
87
  messages=[{"role": "system", "content": f"""
88
 
89
+ Read all the comments, understand the emotions people are feeling and pick the third most common emotion
90
+ and create a story in first person (the person can be randomly young or old and the story can be
91
+ based in past or future) based on that emotion picking a random character keep the words
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}. The comment should similar to how the comments are given"""},
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
+ """}]
 
 
98
  ,temperature=temperature)
99
  return completion.choices[0].message.content
100