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

Update app.py

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