marinone94 commited on
Commit
6e0a1d3
1 Parent(s): 8f5c8b8
Files changed (3) hide show
  1. run.sh +1 -1
  2. run_sm.py +9 -4
  3. test_run.sh +1 -1
run.sh CHANGED
@@ -1,4 +1,4 @@
1
- python run_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" \
 
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} && cd {repo_name} && sh {script_name}'
12
- output = subprocess.run(cmd.split(), stdout=subprocess.PIPE)
13
- print(output.stdout.decode())
 
 
 
 
 
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 run_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" \
 
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" \