openvoice plugin
Browse files- .ipynb_checkpoints/update-checkpoint.py +26 -0
- output.wav +0 -0
- update.py +26 -0
.ipynb_checkpoints/update-checkpoint.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|
output.wav
DELETED
|
Binary file (213 kB)
|
|
|
update.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|