Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -97,8 +97,9 @@ demo = gr.Blocks() | |
| 97 | 
             
            # Audio translation using microphone as the input
         | 
| 98 | 
             
            audio_translate = gr.Interface(
         | 
| 99 | 
             
                fn=speech_to_speech_translation,
         | 
| 100 | 
            -
                inputs=gr.Audio(source="microphone", type="filepath"),
         | 
| 101 | 
             
                outputs=gr.Audio(label="Generated Speech", type="numpy"),
         | 
|  | |
| 102 | 
             
                title=title,
         | 
| 103 | 
             
                description=description,
         | 
| 104 | 
             
            )
         | 
|  | |
| 97 | 
             
            # Audio translation using microphone as the input
         | 
| 98 | 
             
            audio_translate = gr.Interface(
         | 
| 99 | 
             
                fn=speech_to_speech_translation,
         | 
| 100 | 
            +
                inputs=[[gr.Audio(source="microphone", type="filepath")], [gr.Audio(source="upload", type="filepath")]],
         | 
| 101 | 
             
                outputs=gr.Audio(label="Generated Speech", type="numpy"),
         | 
| 102 | 
            +
                examples=[["./english.wav"], ["./chinese.wav"]],
         | 
| 103 | 
             
                title=title,
         | 
| 104 | 
             
                description=description,
         | 
| 105 | 
             
            )
         | 
