# import ingest import sys import os # Diretório que você deseja listar diretorio = os.path.dirname(__file__) # Lista todos os arquivos no diretório arquivos = os.listdir(diretorio) # Imprime o nome de cada arquivo for arquivo in arquivos: if os.path.isfile(os.path.join(diretorio, arquivo)): print(arquivo) data_path = os.path.join(os.path.dirname(__file__), '..') # Add the data directory to sys.path sys.path.append(data_path) from localGPTUI import frontend localGPTUI.main() # ingest.main() data_path = os.path.join(os.path.dirname(__file__), 'localGPTUI') # Add the data directory to sys.path sys.path.append(data_path) from localGPTUI import frontend frontend.main() # ingest.main()