Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def find_most_similar_command(statement, command_list):
|
|
33 |
return best_match,reply
|
34 |
def transcribe_the_command(audio,id):
|
35 |
import soundfile as sf
|
36 |
-
commands=urdu_data[
|
37 |
sample_rate, audio_data = audio
|
38 |
file_name = "recorded_audio.wav"
|
39 |
sf.write(file_name, audio_data, sample_rate)
|
|
|
33 |
return best_match,reply
|
34 |
def transcribe_the_command(audio,id):
|
35 |
import soundfile as sf
|
36 |
+
commands=urdu_data[0]
|
37 |
sample_rate, audio_data = audio
|
38 |
file_name = "recorded_audio.wav"
|
39 |
sf.write(file_name, audio_data, sample_rate)
|