Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
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]
|