fix updater

This commit is contained in:
ThatLinuxFan 2024-01-02 18:37:29 -06:00 committed by GitHub
parent 153a53a1ed
commit 8f1f3db4c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,8 +23,8 @@ llm = Ollama(
completeContext = ""
# Define URLs for requirements.txt and main.py
#REQS_URL = 'https://raw.githubusercontent.com/The-AI-Brain/ai-brain/main/requirements.txt'
#MAIN_URL = 'https://raw.githubusercontent.com/The-AI-Brain/ai-brain/main/main.py'
REQS_URL = 'https://raw.githubusercontent.com/The-AI-Brain/ai-brain/main/requirements.txt'
MAIN_URL = 'https://raw.githubusercontent.com/The-AI-Brain/ai-brain/main/main.py'
# Define paths for local requirements.txt and main.py files
REQS_PATH = 'requirements.txt'
@ -252,7 +252,6 @@ async def get_chatin(chatText: str):
# Main function to run the program
def main(chatin):
check_updates()
chatin = "Guest:" + chatin
# Get response from ollama
@ -268,6 +267,7 @@ def main(chatin):
def cli():
while True:
check_updates()
toChat = input("brain@localhost:~$ ")
main(f"{toChat}")
cli()