Spaces:
				
			
			
	
			
			
		Running
		
			on 
			
			Zero
	
	
	
			
			
	
	
	
	
		
		
		Running
		
			on 
			
			Zero
	Update whisper2.py
Browse files- whisper2.py +1 -0
 
    	
        whisper2.py
    CHANGED
    
    | 
         @@ -106,6 +106,7 @@ def generate(audio): 
     | 
|
| 106 | 
         
             
                                                )
         
     | 
| 107 | 
         
             
                    output = processor.batch_decode(pred_ids, skip_special_tokens=True)
         
     | 
| 108 | 
         | 
| 
         | 
|
| 109 | 
         
             
                if length <= 30:
         
     | 
| 110 | 
         
             
                    return output[1:]
         
     | 
| 111 | 
         
             
                else:
         
     | 
| 
         | 
|
| 106 | 
         
             
                                                )
         
     | 
| 107 | 
         
             
                    output = processor.batch_decode(pred_ids, skip_special_tokens=True)
         
     | 
| 108 | 
         | 
| 109 | 
         
            +
                print(output)
         
     | 
| 110 | 
         
             
                if length <= 30:
         
     | 
| 111 | 
         
             
                    return output[1:]
         
     | 
| 112 | 
         
             
                else:
         
     |