adi-123 commited on
Commit
a009daf
·
1 Parent(s): bb2d7b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -29,9 +29,8 @@ def txt2story(img_text):
29
  )
30
 
31
  messages = [
32
- {"role": "system", "content": '''You are an expert short story writer who specialises
33
- in writing stories on input set of words.Ensure the story MUST
34
- have a definitive ending.''', "temperature": 0.8},
35
  {"role": "user", "content": f"Here is input set of words: {img_text}", "temperature": 1},
36
  ]
37
 
 
29
  )
30
 
31
  messages = [
32
+ {"role": "system", "content": '''As an experienced short story writer, create a meaningful story influenced by provided words.
33
+ Ensure stories conclude positively within 190 words/200 tokens.''', "temperature": 0.8},
 
34
  {"role": "user", "content": f"Here is input set of words: {img_text}", "temperature": 1},
35
  ]
36