Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
115 |
-
|
116 |
print(lines[i+z].split(f'{z}.')[1])
|
117 |
opts.append(lines[i+z+1].split(f'{z}.')[1])
|
118 |
-
|
119 |
-
|
120 |
-
|
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]
|