anyantudre commited on
Commit
67a4c34
·
unverified ·
1 Parent(s): 9e33bf8

Update goai_stt.py

Browse files
Files changed (1) hide show
  1. goai_helpers/goai_stt.py +1 -6
goai_helpers/goai_stt.py CHANGED
@@ -5,12 +5,7 @@ from transformers import set_seed, Wav2Vec2ForCTC, AutoProcessor
5
  import numpy as np
6
  import spaces
7
  import os
8
- from huggingface_hub import login
9
 
10
- #auth_token = os.environ["HF_SPACE_TOKEN"]
11
- #print(f" Auth token ====>> {auth_token}")
12
- auth_token = os.getenv('HF_SPACE_TOKEN')
13
- login(token=auth_token)
14
 
15
  @spaces.GPU
16
  def goai_stt(fichier):
@@ -76,4 +71,4 @@ def goai_stt(fichier):
76
  transcription = processor.decode(pred_ids)
77
 
78
  print("temps écoulé: ", int(time.time() - start_time), " secondes")
79
- return transcription
 
5
  import numpy as np
6
  import spaces
7
  import os
 
8
 
 
 
 
 
9
 
10
  @spaces.GPU
11
  def goai_stt(fichier):
 
71
  transcription = processor.decode(pred_ids)
72
 
73
  print("temps écoulé: ", int(time.time() - start_time), " secondes")
74
+ return transcription