Spaces:
				
			
			
	
			
			
		Runtime error
		
	
	
	
			
			
	
	
	
	
		
		
		Runtime error
		
	Update app.py
Browse files
    	
        app.py
    CHANGED
    
    | @@ -7,7 +7,7 @@ import os | |
| 7 |  | 
| 8 | 
             
            @spaces.GPU
         | 
| 9 | 
             
            def fn_clearvoice_se(input_wav, sr):
         | 
| 10 | 
            -
                if sr == "16000":
         | 
| 11 | 
             
                    myClearVoice = ClearVoice(task='speech_enhancement', model_names=['FRCRN_SE_16K'])
         | 
| 12 | 
             
                    fs = 16000
         | 
| 13 | 
             
                else:
         | 
| @@ -70,7 +70,7 @@ se_demo = gr.Interface( | |
| 70 | 
             
                inputs = [
         | 
| 71 | 
             
                    gr.Audio(label="Input Audio", type="filepath"),
         | 
| 72 | 
             
                    gr.Dropdown(
         | 
| 73 | 
            -
                        ["16000", "48000"], value= | 
| 74 | 
             
                    ),
         | 
| 75 | 
             
                ],
         | 
| 76 | 
             
                outputs = [
         | 
|  | |
| 7 |  | 
| 8 | 
             
            @spaces.GPU
         | 
| 9 | 
             
            def fn_clearvoice_se(input_wav, sr):
         | 
| 10 | 
            +
                if sr == "16000 Hz":
         | 
| 11 | 
             
                    myClearVoice = ClearVoice(task='speech_enhancement', model_names=['FRCRN_SE_16K'])
         | 
| 12 | 
             
                    fs = 16000
         | 
| 13 | 
             
                else:
         | 
|  | |
| 70 | 
             
                inputs = [
         | 
| 71 | 
             
                    gr.Audio(label="Input Audio", type="filepath"),
         | 
| 72 | 
             
                    gr.Dropdown(
         | 
| 73 | 
            +
                        ["16000 Hz", "48000 Hz"], value="16000 Hz", multiselect=False, info="Choose a sampling rate for your output."
         | 
| 74 | 
             
                    ),
         | 
| 75 | 
             
                ],
         | 
| 76 | 
             
                outputs = [
         |