Omnibus commited on
Commit
3a22e5f
·
verified ·
1 Parent(s): 750cacb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -109,7 +109,7 @@ def generate(prompt, history,max_new_tokens,health,temperature=temperature,top_p
109
  option_drop=[]
110
  new_stat="*******************\n"
111
  for i,line in enumerate(lines):
112
- if ":" in line:
113
  for z in range(1,5):
114
  try:
115
  if f'{z}' in lines[i+z]:
@@ -118,7 +118,7 @@ def generate(prompt, history,max_new_tokens,health,temperature=temperature,top_p
118
  except Exception as e:
119
  print(e)
120
  pass
121
- elif ": " in line[:12]:
122
  try:
123
  lab_1 = line.split(": ")[0]
124
 
 
109
  option_drop=[]
110
  new_stat="*******************\n"
111
  for i,line in enumerate(lines):
112
+ if "Choices:" in line:
113
  for z in range(1,5):
114
  try:
115
  if f'{z}' in lines[i+z]:
 
118
  except Exception as e:
119
  print(e)
120
  pass
121
+ if ": " in line[:12]:
122
  try:
123
  lab_1 = line.split(": ")[0]
124