Skip to content

Commit

Permalink
feat(conda): share env between diffusers and bark
Browse files Browse the repository at this point in the history
  • Loading branch information
mudler committed Dec 19, 2023
1 parent d4210db commit 873258b
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 179 deletions.
4 changes: 1 addition & 3 deletions backend/python/bark/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.PHONY: ttsbark
ttsbark:
@echo "Creating virtual environment..."
@conda env create --name ttsbark --file ttsbark.yml
@echo "Virtual environment created."
$(MAKE) -C ../common-env/transformers

.PHONY: run
run:
Expand Down
2 changes: 1 addition & 1 deletion backend/python/bark/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
export PATH=$PATH:/opt/conda/bin

# Activate conda environment
source activate ttsbark
source activate transformers

# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
Expand Down
2 changes: 1 addition & 1 deletion backend/python/bark/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## A bash script wrapper that runs the bark server with conda

# Activate conda environment
source activate ttsbark
source activate transformers

# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
Expand Down
96 changes: 0 additions & 96 deletions backend/python/bark/ttsbark.yml

This file was deleted.

4 changes: 1 addition & 3 deletions backend/python/diffusers/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
.PHONY: diffusers
diffusers:
@echo "Creating virtual environment..."
@conda env create --name diffusers --file diffusers.yml
@echo "Virtual environment created."
$(MAKE) -C ../common-env/transformers

.PHONY: run
run:
Expand Down
73 changes: 0 additions & 73 deletions backend/python/diffusers/diffusers.yml

This file was deleted.

2 changes: 1 addition & 1 deletion backend/python/diffusers/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
export PATH=$PATH:/opt/conda/bin

# Activate conda environment
source activate diffusers
source activate transformers

# get the directory where the bash script is located
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
Expand Down
2 changes: 1 addition & 1 deletion backend/python/diffusers/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
export PATH=$PATH:/opt/conda/bin

# Activate conda environment
source activate diffusers
source activate transformers

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

0 comments on commit 873258b

Please sign in to comment.