Hunzla commited on
Commit
5670b85
1 Parent(s): 1fe563d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,5 +1,5 @@
1
  from transformers import pipeline
2
- asr_pipe = pipeline("automatic-speech-recognition", model="Abdullah17/whisper-small-urdu")
3
  transcript_pipe = pipeline("automatic-speech-recognition", model="ihanif/whisper-medium-urdu")
4
  from difflib import SequenceMatcher
5
  import json
@@ -46,7 +46,7 @@ def transcribe_the_command(audio,menu_id,abc):
46
  # Convert stereo to mono by averaging the two channels
47
  print(menu_id)
48
 
49
- transcript = asr_pipe(file_name)["text"]
50
  commands=urdu_data[menu_id]
51
  print(commands)
52
  most_similar_command,reply = find_most_similar_command(transcript, commands)
 
1
  from transformers import pipeline
2
+ # asr_pipe = pipeline("automatic-speech-recognition", model="Abdullah17/whisper-small-urdu")
3
  transcript_pipe = pipeline("automatic-speech-recognition", model="ihanif/whisper-medium-urdu")
4
  from difflib import SequenceMatcher
5
  import json
 
46
  # Convert stereo to mono by averaging the two channels
47
  print(menu_id)
48
 
49
+ transcript = transcript_pipe(file_name)["text"]
50
  commands=urdu_data[menu_id]
51
  print(commands)
52
  most_similar_command,reply = find_most_similar_command(transcript, commands)