Omnibus commited on
Commit
9364547
1 Parent(s): b2bc1f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -107,8 +107,8 @@ def generate(prompt, history,max_new_tokens,health,temperature=temperature,top_p
107
  skill_dict={}
108
  new_stat="*******************\n"
109
  for i,line in enumerate(lines):
110
- if "Choices:" in line:
111
- for z in range(1,10):
112
  try:
113
  if f'{z}' in lines[i+z]:
114
  print(lines[i+z].split(" ",1)[1])
 
107
  skill_dict={}
108
  new_stat="*******************\n"
109
  for i,line in enumerate(lines):
110
+ if ": " in line:
111
+ for z in range(1,5):
112
  try:
113
  if f'{z}' in lines[i+z]:
114
  print(lines[i+z].split(" ",1)[1])