1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-08-17 06:00:33 +03:00

refactor(scripts): only install PyTorch when the targeted setup is the TCP server

This commit is contained in:
louistiti 2024-06-23 22:39:39 +08:00
parent 6045eb5105
commit 0661e9e04f
No known key found for this signature in database
GPG Key ID: 92CD6A2E497E1669

View File

@ -213,7 +213,9 @@ SPACY_MODELS.set('fr', {
LogHelper.success('Python packages installed')
await installPytorch()
if (givenSetupTarget === 'tcp-server') {
await installPytorch()
}
} catch (e) {
if (hasDotVenv) {
await fs.promises.rm(dotVenvPath, { recursive: true, force: true })