improve chat page

This commit is contained in:
josc146
2023-05-19 20:10:30 +08:00
parent 7ba90ae7af
commit 752b72e2c9
3 changed files with 151 additions and 111 deletions

View File

@@ -10,9 +10,10 @@ def set_torch():
if torch_path in paths:
print("torch already set")
else:
print("run:")
os.environ["PATH"] = paths + os.pathsep + torch_path + os.pathsep
print(f"set Path={paths + os.pathsep + torch_path + os.pathsep}")
print("torch set")
# print("run:")
# print(f"set Path={paths + os.pathsep + torch_path + os.pathsep}")
else:
print("torch not found")