Omnibus commited on
Commit
9c1210f
1 Parent(s): 5a59046

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -111,13 +111,13 @@ def generate(prompt, history,max_new_tokens,health,temperature=temperature,top_p
111
  for i,line in enumerate(lines):
112
  if ":" in line:
113
  for z in range(1,5):
114
- if f'{z}.' in lines[i+z+1]:
115
- try:
116
  print(lines[i+z].split(f'{z}.')[1])
117
  opts.append(lines[i+z+1].split(f'{z}.')[1])
118
- except Exception as e:
119
- print(e)
120
- pass
121
  if ": " in line[:20]:
122
  try:
123
  lab_1 = line.split(": ")[0]
 
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+1]:
116
  print(lines[i+z].split(f'{z}.')[1])
117
  opts.append(lines[i+z+1].split(f'{z}.')[1])
118
+ except Exception as e:
119
+ print(e)
120
+ pass
121
  if ": " in line[:20]:
122
  try:
123
  lab_1 = line.split(": ")[0]