Update app.py
Browse files190 unmodified lines19119219319419519419519619719821 unmodified lines220221222223224225223224225226190 unmodified lines
def transcribe(): try: # Initialize the speaker diarization pipeline with the provided token pipeline = Pipeline.from_pretrained("pyannote/speaker-diarization", use_auth_token=hf_token) # Initialize the speaker diarization pipeline with the provided token and correct location pipeline = Pipeline.from_pretrained("collinbarnwell/pyannote-speaker-diarization-31", use_auth_token=hf_token) if pipeline is None: raise ValueError("Failed to initialize the speaker diarization pipeline") print("Speaker diarization pipeline initialized successfully")21 unmodified lines ]), download_data else: return transcript, None
print("Reached end of script definitions")
if __name__ == '__main__': print("Starting the Dash application...") app.run(debug=True, host='0.0.0.0', port=7860)app.py+3-5