Skip to content

Commit

Permalink
Fix for initial instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
machinewrapped committed Aug 12, 2023
1 parent 7211825 commit f6e844e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PySubtitleGPT/Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ def Save(self):
logging.error(f"Error saving settings to {settings_path}")
return False

def InitialiseInstructions(self):
def InitialiseInstructions(self):
instructions = self.get('instructions')
retry_instructions = self.get('retry_instructions')

# If instructions file exists load the instructions from that
if self.get('instruction_file'):
instructions, retry_instructions = LoadInstructionsFile(self.get('instruction_file'))
Expand Down

0 comments on commit f6e844e

Please sign in to comment.