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