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:
parent
6045eb5105
commit
0661e9e04f
@ -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 })
|
||||
|
Loading…
Reference in New Issue
Block a user