drewThomasson
commited on
Commit
•
c9dbcc7
1
Parent(s):
9b9c373
Update import_locally_stored_tts_model_files.py
Browse files
import_locally_stored_tts_model_files.py
CHANGED
@@ -5,7 +5,7 @@ print("Importing locally stored coqui tts models...")
|
|
5 |
|
6 |
# Define the source directory and the destination base path
|
7 |
source_dir = os.getcwd() # Current working directory
|
8 |
-
tts_folder = os.path.join(source_dir, '
|
9 |
destination_base = '/home/user/.local/share/'
|
10 |
|
11 |
# Define the destination path for the tts folder
|
@@ -19,5 +19,6 @@ if os.path.exists(tts_folder):
|
|
19 |
shutil.move(tts_folder, destination_path)
|
20 |
print(f'Moved: {tts_folder} to {destination_path}')
|
21 |
print("Locally stored coqui tts models imported!")
|
|
|
22 |
else:
|
23 |
print(f'Source path does not exist: {tts_folder}')
|
|
|
5 |
|
6 |
# Define the source directory and the destination base path
|
7 |
source_dir = os.getcwd() # Current working directory
|
8 |
+
tts_folder = os.path.join(source_dir, 'local_coqui_tts_models')
|
9 |
destination_base = '/home/user/.local/share/'
|
10 |
|
11 |
# Define the destination path for the tts folder
|
|
|
19 |
shutil.move(tts_folder, destination_path)
|
20 |
print(f'Moved: {tts_folder} to {destination_path}')
|
21 |
print("Locally stored coqui tts models imported!")
|
22 |
+
print(os.listdir('/home/user/.local/share/tts'))
|
23 |
else:
|
24 |
print(f'Source path does not exist: {tts_folder}')
|