Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
49 |
-
|
50 |
else:
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
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")
|