Higobeatz commited on
Commit
e05e63a
·
1 Parent(s): 29ad91b

openvoice plugin

Browse files
example.py → examples/example.py RENAMED
File without changes
openvoice_example.py → examples/openvoice_example.py RENAMED
File without changes
update.py DELETED
@@ -1,26 +0,0 @@
1
- from huggingface_hub import HfApi, HfFolder, Repository
2
-
3
- # Authenticate with Hugging Face Hub
4
- api = HfApi()
5
- token = HfFolder.get_token()
6
- if token is None:
7
- raise ValueError("Hugging Face token is not set. Please authenticate first.")
8
-
9
- # Create or clone the private repository using the token
10
- repo = Repository(
11
- local_dir="DreamVoice",
12
- clone_from="myshell-ai/DreamVoice",
13
- use_auth_token=token
14
- )
15
-
16
- repo.lfs_track(".pt")
17
- repo.lfs_track(".png")
18
-
19
- # Add all changes to git
20
- repo.git_add()
21
-
22
- # Commit the changes with a message
23
- repo.git_commit("Initial commit")
24
-
25
- # Push the changes to the remote repository
26
- repo.git_push()