Skip to content

Commit

Permalink
Update gui_run.py removed unwanted comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewThomasson authored Jan 7, 2024
1 parent 53b96a2 commit 12d321e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gui_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def process_chapter_files(folder_path, output_csv):
print(f"Error processing file {filename}: {e}")
"""

#fuck

def process_chapter_files(folder_path, output_csv):
with open(output_csv, 'w', newline='', encoding='utf-8') as csvfile:
writer = csv.writer(csvfile)
Expand Down Expand Up @@ -1453,7 +1453,7 @@ def on_gender_select():
# Add the new button to the GUI
clone_voice_button.pack(padx=5)

#fuck

#this will add a button that will let you give a voice actor a specific fine tuned model for xtts which you already fine tuned of course
import os
import shutil
Expand Down Expand Up @@ -1602,7 +1602,7 @@ def list_reference_files(voice_actor):

current_model =""

#fuck

tts = None


Expand All @@ -1629,7 +1629,7 @@ def generate_file_ids(csv_file, chapter_delimiter):
#delim = chapter_delimiter_var.get()
generate_file_ids(csv_file, chapter_delimiter_var.get())

#fuck

#function to generate audio for fine tuned speakers in xtts
import os
import torch
Expand Down Expand Up @@ -1823,7 +1823,7 @@ def generate_audio():
#else:
# print(f"{voice_actor} is neither multi-dataset nor multilingual")
# tts.tts_to_file(text=fragment,file_path=f"Working_files/temp/{temp_count}.wav") # Assuming the tts_to_file function has default arguments for unspecified parameters
#fuck

#If the voice actor has a custom fine tuned xtts model in its refrence folder ie if it has the model folder containing it
elif os.path.exists(f"tortoise/voices/{voice_actor}/model") and os.path.isdir(f"tortoise/voices/{voice_actor}/model"):
speaker_wavz=list_reference_files(voice_actor)
Expand Down

0 comments on commit 12d321e

Please sign in to comment.