marcosremar2 commited on
Commit
e846eba
·
1 Parent(s): 8ad5bd3

Update to pyannote.audio 3.1 exact version

Browse files

- Simplify requirements.txt to only essential packages
- Use pyannote.audio==3.1 as per official docs
- Fix auth token parameter to use_auth_token
- Force space restart

Files changed (3) hide show
  1. RESTART_TRIGGER.md +2 -2
  2. app.py +4 -9
  3. requirements.txt +1 -15
RESTART_TRIGGER.md CHANGED
@@ -2,8 +2,8 @@
2
 
3
  Este arquivo força o restart do space quando modificado.
4
 
5
- **Última modificação:** 2025-05-31 17:31:00 UTC
6
- **Motivo:** Fixed GPU decorator, Gradio version, and launch parameters
7
  **Status:** Triggering full redeploy
8
 
9
  ## Configurações Necessárias Após Restart:
 
2
 
3
  Este arquivo força o restart do space quando modificado.
4
 
5
+ **Última modificação:** 2025-05-31 17:45:00 UTC
6
+ **Motivo:** Updated to pyannote.audio 3.1 exact version and fixed auth token parameter
7
  **Status:** Triggering full redeploy
8
 
9
  ## Configurações Necessárias Após Restart:
app.py CHANGED
@@ -34,15 +34,10 @@ class PyannoteService:
34
  logger.warning("Token do HuggingFace não encontrado")
35
 
36
  # Carregar pipeline de diarization
37
- if hf_token:
38
- self.pipeline = Pipeline.from_pretrained(
39
- "pyannote/speaker-diarization-3.1",
40
- token=hf_token
41
- )
42
- else:
43
- self.pipeline = Pipeline.from_pretrained(
44
- "pyannote/speaker-diarization-3.1"
45
- )
46
 
47
  # Configurar device
48
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
34
  logger.warning("Token do HuggingFace não encontrado")
35
 
36
  # Carregar pipeline de diarization
37
+ self.pipeline = Pipeline.from_pretrained(
38
+ "pyannote/speaker-diarization-3.1",
39
+ use_auth_token=hf_token
40
+ )
 
 
 
 
 
41
 
42
  # Configurar device
43
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
requirements.txt CHANGED
@@ -1,17 +1,3 @@
1
  gradio==4.31.5
2
  spaces
3
- torch>=2.0.0,<2.3.0
4
- torchaudio>=2.0.0,<2.3.0
5
- pyannote.audio==3.1.1
6
- pyannote.database==5.0.1
7
- speechbrain>=0.5.0,<1.0.0
8
- huggingface_hub>=0.16.0
9
- transformers>=4.30.0,<5.0.0
10
- accelerate>=0.20.0,<1.0.0
11
- librosa>=0.10.0,<1.0.0
12
- soundfile>=0.12.0,<1.0.0
13
- numpy>=1.24.0,<2.0.0
14
- scipy>=1.11.0,<2.0.0
15
- pandas>=2.0.0,<3.0.0
16
- matplotlib>=3.7.0,<4.0.0
17
- protobuf>=3.20.0,<5.0.0
 
1
  gradio==4.31.5
2
  spaces
3
+ pyannote.audio==3.1