Spaces:
				
			
			
	
			
			
		Running
		
			on 
			
			Zero
	
	
	
			
			
	
	
	
	
		
		
		Running
		
			on 
			
			Zero
	
		liuyang
		
	commited on
		
		
					Commit 
							
							·
						
						6dfc92e
	
1
								Parent(s):
							
							2d46747
								
update model
Browse files
    	
        app.py
    CHANGED
    
    | @@ -286,6 +286,8 @@ class WhisperTranscriber: | |
| 286 | 
             
                                os.unlink(wav_path)
         | 
| 287 |  | 
| 288 | 
             
                    except Exception as e:
         | 
|  | |
|  | |
| 289 | 
             
                        return {"error": f"Processing failed: {str(e)}"}
         | 
| 290 |  | 
| 291 | 
             
            # Initialize transcriber
         | 
|  | |
| 286 | 
             
                                os.unlink(wav_path)
         | 
| 287 |  | 
| 288 | 
             
                    except Exception as e:
         | 
| 289 | 
            +
                        import traceback
         | 
| 290 | 
            +
                        traceback.print_exc()
         | 
| 291 | 
             
                        return {"error": f"Processing failed: {str(e)}"}
         | 
| 292 |  | 
| 293 | 
             
            # Initialize transcriber
         | 
    	
        config.py
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 | 
             
            # Configuration settings for the Whisper Transcription Space
         | 
| 2 |  | 
| 3 | 
             
            # Model configurations
         | 
| 4 | 
            -
            WHISPER_MODEL = " | 
| 5 | 
             
            DIARIZATION_MODEL = "pyannote/speaker-diarization-3.1"
         | 
| 6 |  | 
| 7 | 
             
            # Audio processing settings
         | 
|  | |
| 1 | 
             
            # Configuration settings for the Whisper Transcription Space
         | 
| 2 |  | 
| 3 | 
             
            # Model configurations
         | 
| 4 | 
            +
            WHISPER_MODEL = "distil-whisper/distil-large-v3"
         | 
| 5 | 
             
            DIARIZATION_MODEL = "pyannote/speaker-diarization-3.1"
         | 
| 6 |  | 
| 7 | 
             
            # Audio processing settings
         |