Spaces:
				
			
			
	
			
			
		Sleeping
		
	
	
	
			
			
	
	
	
	
		
		
		Sleeping
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -3,6 +3,6 @@ import gradio as gr | |
| 3 | 
             
            whisper = gr.load("models/openai/whisper-small")
         | 
| 4 |  | 
| 5 | 
             
            def transcribe(audio):
         | 
| 6 | 
            -
                return whisper(audio)
         | 
| 7 |  | 
| 8 | 
             
            gr.Interface(transcribe, gr.Audio(type="filepath"), gr.Textbox()).launch()
         | 
|  | |
| 3 | 
             
            whisper = gr.load("models/openai/whisper-small")
         | 
| 4 |  | 
| 5 | 
             
            def transcribe(audio):
         | 
| 6 | 
            +
                return whisper(audio).replace("AutomaticSpeechRecognitionOutput(text=' ", "").replace("', chunks=None)", "")
         | 
| 7 |  | 
| 8 | 
             
            gr.Interface(transcribe, gr.Audio(type="filepath"), gr.Textbox()).launch()
         | 
 
			
