ajayarora1235
commited on
Commit
·
37d50e9
1
Parent(s):
4b5e5e7
fix audiocraft install, add user env var fix
Browse files- app.py +1 -0
- requirements.txt +1 -1
app.py
CHANGED
@@ -1498,6 +1498,7 @@ def run(seed, stop_repetition, sample_batch_size, left_margin, right_margin, cod
|
|
1498 |
|
1499 |
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
|
1500 |
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
|
|
|
1501 |
# take a look at demo/temp/mfa_alignment, decide which part of the audio to use as prompt
|
1502 |
cut_off_sec = cutoff_value # NOTE: according to forced-alignment file, the word "common" stop as 3.01 sec, this should be different for different audio
|
1503 |
target_transcript = transcribed_text + target_transcript
|
|
|
1498 |
|
1499 |
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
|
1500 |
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
|
1501 |
+
os.environ["USER"] = "USER"
|
1502 |
# take a look at demo/temp/mfa_alignment, decide which part of the audio to use as prompt
|
1503 |
cut_off_sec = cutoff_value # NOTE: according to forced-alignment file, the word "common" stop as 3.01 sec, this should be different for different audio
|
1504 |
target_transcript = transcribed_text + target_transcript
|
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
stftpitchshift==1.5.1
|
3 |
torchcrepe
|
4 |
setuptools
|
|
|
1 |
+
-e git+https://github.com/facebookresearch/audiocraft.git@c5157b5bf14bf83449c17ea1eeb66c19fb4bc7f0#egg=audiocraft
|
2 |
stftpitchshift==1.5.1
|
3 |
torchcrepe
|
4 |
setuptools
|