Omnibus commited on
Commit
b00dedd
1 Parent(s): e7530e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -109,15 +109,15 @@ 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 line[:6]:
116
- print(lines[i+z].split(" ",1)[1])
117
- opts.append(lines[i+z].split(" ",1)[1])
118
- # except Exception as e:
119
- # print(e)
120
- # pass
121
  if ": " in line[:20]:
122
  try:
123
  lab_1 = line.split(": ")[0]
 
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][:6]:
116
+ print(lines[i+z].split(" ",1)[1])
117
+ opts.append(lines[i+z].split(" ",1)[1])
118
+ except Exception as e:
119
+ print(e)
120
+ pass
121
  if ": " in line[:20]:
122
  try:
123
  lab_1 = line.split(": ")[0]