Attempt to fix Linter issues

This commit is contained in:
Eesa Hamza
2023-04-12 23:49:32 +03:00
parent 8c51fe8373
commit 76b5b95744
3 changed files with 5 additions and 4 deletions

View File

@@ -123,13 +123,14 @@ class Logger(metaclass=Singleton):
def set_level(self, level): def set_level(self, level):
self.logger.setLevel(level) self.logger.setLevel(level)
self.typing_logger.setLevel(level) self.typing_logger.setLevel(level)
def double_check(self, additionalText=None): def double_check(self, additionalText=None):
if not additionalText: if not additionalText:
additionalText = "Please ensure you've setup and configured everything correctly. Read https://github.com/Torantulino/Auto-GPT#readme to double check. You can also create a github issue or join the discord and ask there!" additionalText = "Please ensure you've setup and configured everything correctly. Read https://github.com/Torantulino/Auto-GPT#readme to double check. You can also create a github issue or join the discord and ask there!"
self.typewriter_log("DOUBLE CHECK CONFIGURATION", Fore.YELLOW, additionalText) self.typewriter_log("DOUBLE CHECK CONFIGURATION", Fore.YELLOW, additionalText)
''' '''
Output stream to console using simulated typing Output stream to console using simulated typing
''' '''

View File

@@ -3,7 +3,7 @@ import pinecone
from memory.base import MemoryProviderSingleton, get_ada_embedding from memory.base import MemoryProviderSingleton, get_ada_embedding
from logger import logger from logger import logger
from colorama import Fore, Style from colorama import Fore, Style
class PineconeMemory(MemoryProviderSingleton): class PineconeMemory(MemoryProviderSingleton):
def __init__(self, cfg): def __init__(self, cfg):
@@ -17,7 +17,7 @@ class PineconeMemory(MemoryProviderSingleton):
# this assumes we don't start with memory. # this assumes we don't start with memory.
# for now this works. # for now this works.
# we'll need a more complicated and robust system if we want to start with memory. # we'll need a more complicated and robust system if we want to start with memory.
self.vec_num = 0 self.vec_num = 0
try: try:
pinecone.whoami() pinecone.whoami()

View File

@@ -8,7 +8,7 @@ import numpy as np
from memory.base import MemoryProviderSingleton, get_ada_embedding from memory.base import MemoryProviderSingleton, get_ada_embedding
from logger import logger from logger import logger
from colorama import Fore, Style from colorama import Fore, Style
SCHEMA = [ SCHEMA = [