Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jordimas committed Dec 19, 2024
1 parent a577c60 commit 6d133a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
12 changes: 1 addition & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: dev run-tests publish-release run-e2e-tests create-baseline diff-baseline
.PHONY: dev run-tests

PATHS = open_dubbing/ tests/ e2e-tests/

Expand All @@ -18,13 +18,3 @@ publish-release:
python setup.py sdist bdist_wheel
python -m twine upload -u "__token__" -p "${PYPI_API_TOKEN}" --repository-url https://upload.pypi.org/legacy/ dist/*

# Tasks used to detect regressions
create-baseline:
bash ./sc.sh
cd output && git init .
cd output && find . | grep json | xargs git add
cd output && git commit -a -m "baseline jsons"

diff-baseline:
bash ./sc.sh
cd output && git diff > diff_baseline.diff
3 changes: 2 additions & 1 deletion sc.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Script that mimics Softcatalà setup
rm -f open_dubbing.log
pip install .
rm -r -f output/
branch_name=$(git rev-parse --abbrev-ref HEAD)

declare -a target_languages=("cat") # Catalan (cat) and French (fra)
declare -a inputs=($(find ../dubbing/od-videos/ -type f -name "*.mp4"))
declare -a inputs=("videos/jordi.mp4" )

for input_file in "${inputs[@]}"; do
output_directory="output/$(basename "${input_file%.*}")/"
output_directory="output/$(basename "${input_file%.*}").${branch_name}/"
for language in "${target_languages[@]}"; do

# Run the dubbing command
Expand Down

0 comments on commit 6d133a7

Please sign in to comment.