KevinGeng commited on
Commit
4592d87
1 Parent(s): 49691fc

google drive saving modified

Browse files
Files changed (2) hide show
  1. app.py +1 -6
  2. local/check_data.py +2 -2
app.py CHANGED
@@ -29,7 +29,6 @@ import datetime
29
 
30
  # 来自Google Cloud控制台的JSON凭据文件
31
  credentials_file = "./src/peerless-window-254907-b386b71c0d99.json"
32
- # "./client_secret_576367903492-diuopf97kn9eh1gte3vh65errtca1o64.apps.googleusercontent.com.json"
33
  # Google Drive API版本
34
  api_version = 'v3'
35
 
@@ -84,11 +83,7 @@ examples = [
84
  [w, w_, i, x, y] for w, w_, i, x, y in zip(ref_wavs, ref_wavs, refs_ids, refs_txt, refs_ppm)
85
  ]
86
 
87
- # p = pipeline(
88
- # "automatic-speech-recognition",
89
- # model="KevinGeng/whipser_medium_en_PAL300_step25",
90
- # device=0,
91
- # )
92
  p = pipeline("automatic-speech-recognition")
93
 
94
  # WER part
 
29
 
30
  # 来自Google Cloud控制台的JSON凭据文件
31
  credentials_file = "./src/peerless-window-254907-b386b71c0d99.json"
 
32
  # Google Drive API版本
33
  api_version = 'v3'
34
 
 
83
  [w, w_, i, x, y] for w, w_, i, x, y in zip(ref_wavs, ref_wavs, refs_ids, refs_txt, refs_ppm)
84
  ]
85
 
86
+
 
 
 
 
87
  p = pipeline("automatic-speech-recognition")
88
 
89
  # WER part
local/check_data.py CHANGED
@@ -23,12 +23,12 @@ print(files)
23
  from googleapiclient.http import MediaIoBaseDownload
24
  import io
25
 
26
- file_id = "1EqHciegNxZSyWJ9Nizo1QmRQEgTkgWCo"
27
  # Get the file's metadata
28
  file = service.files().get(fileId=file_id).execute()
29
 
30
  pdb.set_trace()
31
- request = service.files().get_media(fileId="1EqHciegNxZSyWJ9Nizo1QmRQEgTkgWCo")
32
  with open(file['name'], 'wb') as file_obj:
33
  downloader = MediaIoBaseDownload(file_obj, request)
34
  done = False
 
23
  from googleapiclient.http import MediaIoBaseDownload
24
  import io
25
 
26
+ file_id = "1YjON2ObGM826KaaqF-sKM7CO0tAtzWGg"
27
  # Get the file's metadata
28
  file = service.files().get(fileId=file_id).execute()
29
 
30
  pdb.set_trace()
31
+ request = service.files().get_media(fileId="1YjON2ObGM826KaaqF-sKM7CO0tAtzWGg")
32
  with open(file['name'], 'wb') as file_obj:
33
  downloader = MediaIoBaseDownload(file_obj, request)
34
  done = False