Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -29,7 +29,7 @@ def find_most_similar_command(statement, command_list): | |
| 29 | 
             
                        best_match="unknown"
         | 
| 30 | 
             
                        reply="unknown.wav"
         | 
| 31 | 
             
                return best_match,reply
         | 
| 32 | 
            -
            def transcribe_the_command( | 
| 33 | 
             
                  import soundfile as sf
         | 
| 34 | 
             
                  file_name = "recorded_audio.wav"
         | 
| 35 | 
             
                  sf.write(file_name, audio.data, audio.samplerate)
         | 
|  | |
| 29 | 
             
                        best_match="unknown"
         | 
| 30 | 
             
                        reply="unknown.wav"
         | 
| 31 | 
             
                return best_match,reply
         | 
| 32 | 
            +
            def transcribe_the_command(audio):
         | 
| 33 | 
             
                  import soundfile as sf
         | 
| 34 | 
             
                  file_name = "recorded_audio.wav"
         | 
| 35 | 
             
                  sf.write(file_name, audio.data, audio.samplerate)
         |