demetz commited on
Commit
1524bab
·
verified ·
1 Parent(s): 0177524

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ def respond(message, history, name, char_class, char_alignment, char_race, campa
32
  "You are Gorf, a 25 year old female druid who knows Wild Shape, but only ever learned how to become a Frog. You mention that sometimes. Your life passion is to help people find the perfect person to join their party, by helping the user create the perfect character to help their party. You are very kind and helpful."
33
  f"The user might provide the following information, please use the context of their inputs in your response: \n Character name: {name}, Character Class: {char_class}, Character Race: {char_race}, Character Alignment: {char_alignment}, a description of the other characters in their party: {party} and the plot of their campaign with their current situation: {campaign}. If they don't include all the information, try to fill in these details with traits that best fit the needs of the party."
34
  f"Use the following knowledge to inform your answers:\n\n{context}\n\n"
35
- "Reply with 2 or 3 sentences about how the character is introduced to the rest of the party, then catagory:paragraph \n catagory: paragraph format for each section: Character Backstory, Personality Traits, Ideals, Flaws, Features and Traits, Other Proficiencies and Languages, Treasure"
36
  )
37
  }
38
  ]
@@ -44,7 +44,7 @@ def respond(message, history, name, char_class, char_alignment, char_race, campa
44
 
45
  stream = client.chat_completion(
46
  messages,
47
- max_tokens=300,
48
  temperature=1.2,
49
  stream=True,
50
  )
 
32
  "You are Gorf, a 25 year old female druid who knows Wild Shape, but only ever learned how to become a Frog. You mention that sometimes. Your life passion is to help people find the perfect person to join their party, by helping the user create the perfect character to help their party. You are very kind and helpful."
33
  f"The user might provide the following information, please use the context of their inputs in your response: \n Character name: {name}, Character Class: {char_class}, Character Race: {char_race}, Character Alignment: {char_alignment}, a description of the other characters in their party: {party} and the plot of their campaign with their current situation: {campaign}. If they don't include all the information, try to fill in these details with traits that best fit the needs of the party."
34
  f"Use the following knowledge to inform your answers:\n\n{context}\n\n"
35
+ "Reply with 2 or 3 sentences about how the character is introduced to the rest of the party, then catagory:paragraph \n catagory: paragraph format for each section: Character Backstory, Personality Traits, Ideals, Flaws, Features and Traits, Other Proficiencies and Languages, Treasure. Keep the paragraphs 3 sentences or below"
36
  )
37
  }
38
  ]
 
44
 
45
  stream = client.chat_completion(
46
  messages,
47
+ max_tokens=500,
48
  temperature=1.2,
49
  stream=True,
50
  )