Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -107,8 +107,8 @@ def generate(prompt, history,max_new_tokens,health,temperature=temperature,top_p
|
|
107 |
skill_dict={}
|
108 |
new_stat="*******************\n"
|
109 |
for i,line in enumerate(lines):
|
110 |
-
if "
|
111 |
-
for z in range(1,
|
112 |
try:
|
113 |
if f'{z}' in lines[i+z]:
|
114 |
print(lines[i+z].split(" ",1)[1])
|
|
|
107 |
skill_dict={}
|
108 |
new_stat="*******************\n"
|
109 |
for i,line in enumerate(lines):
|
110 |
+
if ": " in line:
|
111 |
+
for z in range(1,5):
|
112 |
try:
|
113 |
if f'{z}' in lines[i+z]:
|
114 |
print(lines[i+z].split(" ",1)[1])
|