washeed commited on
Commit
139b8fc
1 Parent(s): 15527fa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -4
README.md CHANGED
@@ -1,18 +1,21 @@
1
  # to run
2
  simply install chocolatey run this on your cmd:
 
3
  @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
4
-
5
  # after that install ffmpeg in your device using choco install by running this on cmd after:
6
-
7
  choco install ffmpeg
8
-
9
  # install dependencies in python IDE using:
 
10
  pip install --upgrade pip
11
 
12
  pip install --upgrade git+https://github.com/huggingface/transformers.git accelerate datasets[audio]
 
13
 
14
  # then lastly to inference the model:
15
-
16
  import torch
17
  from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
18
 
@@ -44,4 +47,5 @@ pipe = pipeline(
44
 
45
  result = pipe("audio.mp3")
46
  print(result["text"])
 
47
 
 
1
  # to run
2
  simply install chocolatey run this on your cmd:
3
+ ```
4
  @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
5
+ ```
6
  # after that install ffmpeg in your device using choco install by running this on cmd after:
7
+ ```
8
  choco install ffmpeg
9
+ ```
10
  # install dependencies in python IDE using:
11
+ ```
12
  pip install --upgrade pip
13
 
14
  pip install --upgrade git+https://github.com/huggingface/transformers.git accelerate datasets[audio]
15
+ ```
16
 
17
  # then lastly to inference the model:
18
+ ```
19
  import torch
20
  from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
21
 
 
47
 
48
  result = pipe("audio.mp3")
49
  print(result["text"])
50
+ ```
51