Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
113 |
-
|
|
|
|
|
|
|
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]
|