Hunzla commited on
Commit
015f95f
1 Parent(s): 9455293

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -45,13 +45,13 @@ def transcribe_the_command(audio,id):
45
 
46
  transcript = asr_pipe(file_name)["text"]
47
  if id == "transcript_only":
48
- reply=transcript
49
- print(reply)
50
  else:
51
- most_similar_command,reply = find_most_similar_command(transcript, commands)
52
- print(f"Given Statement: {transcript}")
53
- print(f"Most Similar Command: {most_similar_command}\n")
54
- print(reply)
55
 
56
  return reply
57
  # get_text_from_voice("urdu.wav")
 
45
 
46
  transcript = asr_pipe(file_name)["text"]
47
  if id == "transcript_only":
48
+ reply=transcript
49
+ print(reply)
50
  else:
51
+ most_similar_command,reply = find_most_similar_command(transcript, commands)
52
+ print(f"Given Statement: {transcript}")
53
+ print(f"Most Similar Command: {most_similar_command}\n")
54
+ print(reply)
55
 
56
  return reply
57
  # get_text_from_voice("urdu.wav")