marinone94
commited on
Commit
•
6e0a1d3
1
Parent(s):
8f5c8b8
fix cmd
Browse files- run.sh +1 -1
- run_sm.py +9 -4
- test_run.sh +1 -1
run.sh
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
python
|
2 |
--model_name_or_path="openai/whisper-tiny" \
|
3 |
--dataset_name="mozilla-foundation/common_voice_11_0" \
|
4 |
--dataset_config_name="sv-SE" \
|
|
|
1 |
+
python $1run_speech_recognition_seq2seq_streaming.py \
|
2 |
--model_name_or_path="openai/whisper-tiny" \
|
3 |
--dataset_name="mozilla-foundation/common_voice_11_0" \
|
4 |
--dataset_config_name="sv-SE" \
|
run_sm.py
CHANGED
@@ -7,10 +7,15 @@ def main():
|
|
7 |
# Let's skip arg names
|
8 |
script_name = sys.argv[2]
|
9 |
repo = sys.argv[4]
|
10 |
-
repo_name = repo.split('/')[-1]
|
11 |
-
cmd = f'git clone {repo}
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
if __name__ == '__main__':
|
16 |
main()
|
|
|
7 |
# Let's skip arg names
|
8 |
script_name = sys.argv[2]
|
9 |
repo = sys.argv[4]
|
10 |
+
repo_name = repo.split('/')[-1] + '/'
|
11 |
+
cmd = f'git clone {repo}'
|
12 |
+
print("Running", cmd)
|
13 |
+
output1 = subprocess.run(cmd.split(), stdout=subprocess.PIPE)
|
14 |
+
print(output1.stdout.decode())
|
15 |
+
cmd = f'sh {script_name} {repo_name}'
|
16 |
+
print("Running", cmd)
|
17 |
+
output2 = subprocess.run(cmd.split(), stdout=subprocess.PIPE)
|
18 |
+
print(output2.stdout.decode())
|
19 |
|
20 |
if __name__ == '__main__':
|
21 |
main()
|
test_run.sh
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
python
|
2 |
--model_name_or_path="openai/whisper-tiny" \
|
3 |
--dataset_name="mozilla-foundation/common_voice_11_0" \
|
4 |
--dataset_config_name="sv-SE" \
|
|
|
1 |
+
python $1run_speech_recognition_seq2seq_streaming.py \
|
2 |
--model_name_or_path="openai/whisper-tiny" \
|
3 |
--dataset_name="mozilla-foundation/common_voice_11_0" \
|
4 |
--dataset_config_name="sv-SE" \
|