Format Python code with psf/black push

github-actions 1 year ago
parent 2240d6df4f
commit d928f32661

@ -65,7 +65,9 @@ class GPT3ComCon(commands.Cog, name="GPT3ComCon"):
# Attempt to read a conversation starter text string from the file.
with conversation_file_path.open("r") as f:
self.CONVERSATION_STARTER_TEXT = f.read()
print(f"Conversation starter text loaded from {conversation_file_path}.")
print(
f"Conversation starter text loaded from {conversation_file_path}."
)
assert self.CONVERSATION_STARTER_TEXT is not None
except Exception:

@ -34,7 +34,9 @@ class ImgPromptOptimizer(commands.Cog, name="ImgPromptOptimizer"):
self.deletion_queue = deletion_queue
try:
image_pretext_path = self.converser_cog.data_path / "image_optimizer_pretext.txt"
image_pretext_path = (
self.converser_cog.data_path / "image_optimizer_pretext.txt"
)
# Try to read the image optimizer pretext from
# the file system
with image_pretext_path.open("r") as file:

Loading…
Cancel
Save