INNER CODE UNIT · Python
start
awekrx/AutoDoc-ChatGPT · modules/autodoc.py:50
def start(self):
with console.status("[bold green] Please wait...") as status:
print(f"[{BLUE}1{RESET}] {BOLD}Dividing text{RESET}")
self.__divided = Divider(self.__code, self.__language).divide()
if len(self.__divided) == 0:
exit(
f"[{RED}END{RESET}] {BOLD}There is nothing to comment in the code{RESET}"
)
print(
f"[{BLUE}2{RESET}] {BOLD}Text is divided into {len(self.__divided)} parts{RESET}"
)
print(f"[{BLUE}3{RESET}] {BOLD}Connecting to ChatGPT{RESET}")
if self.__config["session_token"]:
self.__chatbot = Chatbot(
config={