Various windows bug fixes

This commit is contained in:
Jaret Burkett
2023-08-04 05:51:58 -06:00
parent 66c6f0f6f7
commit b865ac8b24
5 changed files with 5 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ class GenerateConfig:
raise ValueError("Prompts must be set")
if isinstance(self.prompts, str):
if os.path.exists(self.prompts):
with open(self.prompts, 'r') as f:
with open(self.prompts, 'r', encoding='utf-8') as f:
self.prompts = f.read().splitlines()
self.prompts = [p.strip() for p in self.prompts if len(p.strip()) > 0]
else: