Omnibus commited on
Commit
29d19b4
·
verified ·
1 Parent(s): 4ae7a0f

Update app.py

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