GVAmaresh commited on
Commit
dc2f8e3
·
1 Parent(s): 4996177

dev: check working

Browse files
Files changed (1) hide show
  1. app.py +27 -1
app.py CHANGED
@@ -33,4 +33,30 @@ def reencode_audio(input_path, output_path):
33
  ]
34
  subprocess.run(command, check=True)
35
 
36
- #-----------------------------------------------------------------------------------------
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  ]
34
  subprocess.run(command, check=True)
35
 
36
+ #-----------------------------------------------------------------------------------------
37
+
38
+ import gdown
39
+ import h5py
40
+ import io
41
+
42
+ file_id = '1zhisRgRi2qBFX73VFhzh-Ho93MORQqVa'
43
+ url = f"https://drive.google.com/uc?id={file_id}"
44
+
45
+ response = gdown.download(url, None, quiet=False)
46
+
47
+ with h5py.File(io.BytesIO(response.content), 'r') as h5_file:
48
+ print("Keys:", list(h5_file.keys()))
49
+ dataset_name = list(h5_file.keys())[0]
50
+ data = h5_file[dataset_name][:]
51
+ print(data)
52
+
53
+ file_id = '1wIaycDFGTF3e0PpAHKk-GLnxk4cMehOU'
54
+ url = f"https://drive.google.com/uc?id={file_id}"
55
+
56
+ response2 = gdown.download(url, None, quiet=False)
57
+
58
+ with h5py.File(io.BytesIO(response2.content), 'r') as h5_file:
59
+ print("Keys:", list(h5_file.keys()))
60
+ dataset_name = list(h5_file.keys())[0]
61
+ data = h5_file[dataset_name][:]
62
+ print(data)