Commit 
							
							·
						
						9641cc8
	
1
								Parent(s):
							
							875f297
								
Identification de la langue parlée uniquement avec whisper
Browse files
    	
        tabs/modelisation_seq2seq_tab.py
    CHANGED
    
    | 
         @@ -509,7 +509,7 @@ def run(): 
     | 
|
| 509 | 
         
             
                                custom_sentence = result["text"]
         
     | 
| 510 | 
         
             
                            else:
         
     | 
| 511 | 
         
             
                                Lang_detected = l_src
         
     | 
| 512 | 
         
            -
                                result = model_speech.transcribe(audio_input,  
     | 
| 513 | 
         
             
                                custom_sentence = result["text"]
         
     | 
| 514 | 
         
             
                            """
         
     | 
| 515 | 
         
             
                            else:
         
     | 
| 
         | 
|
| 509 | 
         
             
                                custom_sentence = result["text"]
         
     | 
| 510 | 
         
             
                            else:
         
     | 
| 511 | 
         
             
                                Lang_detected = l_src
         
     | 
| 512 | 
         
            +
                                result = model_speech.transcribe(audio_input, language=Lang_detected)
         
     | 
| 513 | 
         
             
                                custom_sentence = result["text"]
         
     | 
| 514 | 
         
             
                            """
         
     | 
| 515 | 
         
             
                            else:
         
     |