SefyanKehail commited on
Commit
5dbca73
·
1 Parent(s): f98a4cd

hosting .pt files on github

Browse files
Files changed (5) hide show
  1. .gitignore +0 -1
  2. acoustic.pt +3 -0
  3. app.py +19 -19
  4. hifigan.pt +3 -0
  5. hubert.pt +3 -0
.gitignore CHANGED
@@ -1 +0,0 @@
1
- $.pt
 
 
acoustic.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b19defec538695c0ffa0d2c8e82980b374d0ab2094c411e5c27fb0d5abb2a58
3
+ size 75331552
app.py CHANGED
@@ -4,23 +4,23 @@ import IPython.display as display
4
  import gradio as gr
5
  import os
6
 
7
- def download_file(url, filename):
8
- if not os.path.exists(filename):
9
- print(f"{filename} files missing. Downloading ...")
10
- response = requests.get(url, stream=True)
11
- with open(filename, 'wb') as file:
12
- for chunk in response.iter_content(chunk_size=8192):
13
- if chunk:
14
- file.write(chunk)
15
- else:
16
- print(f"{filename} exists. Skipping download")
17
 
18
 
19
- model_urls = {
20
- "hubert.pt": "https://www.dropbox.com/scl/fi/99ww7w3z1gwiqfuvq85ju/hubert_cpu.pt?rlkey=5wiqve2kdzn7aw7bth3wz1lqu&st=e6m9yea8&dl=1",
21
- "acoustic.pt": "https://www.dropbox.com/scl/fi/hi8o0kjr6rhwpjb4jj56w/acoustic_cpu.pt?rlkey=0x62tmwbnjpmmvs9u1kdfb1bk&st=1swlb5yc&dl=1",
22
- "hifigan.pt": "https://www.dropbox.com/scl/fi/oi6642xskncc2fhwubawj/hifigan_cpu.pt?rlkey=amljq6kih4vuocj6335wa1hxa&st=2bhdyzed&dl=1"
23
- }
24
 
25
 
26
  # def verify_file(filename):
@@ -40,10 +40,10 @@ def get_file_size_in_mb(file_path):
40
 
41
  return file_size_mb
42
 
43
- for filename, url in model_urls.items():
44
- print(f"Downloading {filename}...")
45
- download_file(url, filename)
46
- print(f"{filename} downloaded successfully.")
47
 
48
 
49
  print(get_file_size_in_mb("hubert.pt"))
 
4
  import gradio as gr
5
  import os
6
 
7
+ # def download_file(url, filename):
8
+ # if not os.path.exists(filename):
9
+ # print(f"{filename} files missing. Downloading ...")
10
+ # response = requests.get(url, stream=True)
11
+ # with open(filename, 'wb') as file:
12
+ # for chunk in response.iter_content(chunk_size=8192):
13
+ # if chunk:
14
+ # file.write(chunk)
15
+ # else:
16
+ # print(f"{filename} exists. Skipping download")
17
 
18
 
19
+ # model_urls = {
20
+ # "hubert.pt": "https://www.dropbox.com/scl/fi/99ww7w3z1gwiqfuvq85ju/hubert_cpu.pt?rlkey=5wiqve2kdzn7aw7bth3wz1lqu&st=e6m9yea8&dl=1",
21
+ # "acoustic.pt": "https://www.dropbox.com/scl/fi/hi8o0kjr6rhwpjb4jj56w/acoustic_cpu.pt?rlkey=0x62tmwbnjpmmvs9u1kdfb1bk&st=1swlb5yc&dl=1",
22
+ # "hifigan.pt": "https://www.dropbox.com/scl/fi/oi6642xskncc2fhwubawj/hifigan_cpu.pt?rlkey=amljq6kih4vuocj6335wa1hxa&st=2bhdyzed&dl=1"
23
+ # }
24
 
25
 
26
  # def verify_file(filename):
 
40
 
41
  return file_size_mb
42
 
43
+ # for filename, url in model_urls.items():
44
+ # print(f"Downloading {filename}...")
45
+ # download_file(url, filename)
46
+ # print(f"{filename} downloaded successfully.")
47
 
48
 
49
  print(get_file_size_in_mb("hubert.pt"))
hifigan.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:838a9aa1711e0485a08aa86903ead66254502adb8defa40a4349927a01b2e2c0
3
+ size 57492346
hubert.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11d7400f7bca582ea0e5bb9aa126f710ddb9cf8db4d0667f1b80913dcf2788d2
3
+ size 378428220