Omnibus commited on
Commit
af8d7c5
1 Parent(s): b549422

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -117,7 +117,7 @@ def generate(prompt, history,max_new_tokens,health,temperature=temperature,top_p
117
  opts.append(lines[i+z].split(" ",1)[1])
118
  except Exception:
119
  pass
120
- if ": " in line:
121
  try:
122
  lab_1 = line.split(": ")[0]
123
 
@@ -147,12 +147,18 @@ def clear_fn():
147
  return None,None
148
 
149
  base_stats=[
150
- {"Health":100,"Power":20,"Strength":24},
151
  ]
152
  text_stats='''*******************
153
  Health: 100
154
  Power: 20
155
  Strength: 24
 
 
 
 
 
 
156
  *******************
157
  '''
158
 
 
117
  opts.append(lines[i+z].split(" ",1)[1])
118
  except Exception:
119
  pass
120
+ if ": " in line[:12]:
121
  try:
122
  lab_1 = line.split(": ")[0]
123
 
 
147
  return None,None
148
 
149
  base_stats=[
150
+ {},
151
  ]
152
  text_stats='''*******************
153
  Health: 100
154
  Power: 20
155
  Strength: 24
156
+ Intelligence: 15
157
+ Charisma: 15
158
+ Dexterity: 18
159
+ Wisdom: 15
160
+ Compassion: 15
161
+ Courage: 15
162
  *******************
163
  '''
164