Skip to content

Commit 873258b

Browse files
committed
feat(conda): share env between diffusers and bark
1 parent d4210db commit 873258b

File tree

8 files changed

+6
-179
lines changed

8 files changed

+6
-179
lines changed

backend/python/bark/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
.PHONY: ttsbark
22
ttsbark:
3-
@echo "Creating virtual environment..."
4-
@conda env create --name ttsbark --file ttsbark.yml
5-
@echo "Virtual environment created."
3+
$(MAKE) -C ../common-env/transformers
64

75
.PHONY: run
86
run:

backend/python/bark/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
export PATH=$PATH:/opt/conda/bin
77

88
# Activate conda environment
9-
source activate ttsbark
9+
source activate transformers
1010

1111
# get the directory where the bash script is located
1212
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

backend/python/bark/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## A bash script wrapper that runs the bark server with conda
44

55
# Activate conda environment
6-
source activate ttsbark
6+
source activate transformers
77

88
# get the directory where the bash script is located
99
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

backend/python/bark/ttsbark.yml

Lines changed: 0 additions & 96 deletions
This file was deleted.

backend/python/diffusers/Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
.PHONY: diffusers
22
diffusers:
3-
@echo "Creating virtual environment..."
4-
@conda env create --name diffusers --file diffusers.yml
5-
@echo "Virtual environment created."
3+
$(MAKE) -C ../common-env/transformers
64

75
.PHONY: run
86
run:

backend/python/diffusers/diffusers.yml

Lines changed: 0 additions & 73 deletions
This file was deleted.

backend/python/diffusers/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
export PATH=$PATH:/opt/conda/bin
77

88
# Activate conda environment
9-
source activate diffusers
9+
source activate transformers
1010

1111
# get the directory where the bash script is located
1212
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

backend/python/diffusers/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
export PATH=$PATH:/opt/conda/bin
77

88
# Activate conda environment
9-
source activate diffusers
9+
source activate transformers
1010

1111
# get the directory where the bash script is located
1212
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

0 commit comments

Comments
 (0)