Changed SP to a dropdown list instead of a full menu

This commit is contained in:
ebolam
2022-08-21 16:23:58 -04:00
parent 60f10a2b78
commit c1580319ed
6 changed files with 43 additions and 12 deletions

View File

@@ -154,7 +154,7 @@ def getspfiles(model_dimension: int):
for file in listdir("softprompts"):
if not file.endswith(".zip"):
continue
z, version, shape, fortran_order, dtype = checksp(file, model_dimension)
z, version, shape, fortran_order, dtype = checksp("./softprompts/"+file, model_dimension)
if z == 1:
print(f"Browser SP loading error: {file} is malformed or not a soft prompt ZIP file.")
continue