fix updater
This commit is contained in:
parent
153a53a1ed
commit
8f1f3db4c6
1 changed files with 3 additions and 3 deletions
6
main.py
6
main.py
|
@ -23,8 +23,8 @@ llm = Ollama(
|
||||||
|
|
||||||
completeContext = ""
|
completeContext = ""
|
||||||
# Define URLs for requirements.txt and main.py
|
# Define URLs for requirements.txt and main.py
|
||||||
#REQS_URL = 'https://raw.githubusercontent.com/The-AI-Brain/ai-brain/main/requirements.txt'
|
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'
|
MAIN_URL = 'https://raw.githubusercontent.com/The-AI-Brain/ai-brain/main/main.py'
|
||||||
|
|
||||||
# Define paths for local requirements.txt and main.py files
|
# Define paths for local requirements.txt and main.py files
|
||||||
REQS_PATH = 'requirements.txt'
|
REQS_PATH = 'requirements.txt'
|
||||||
|
@ -252,7 +252,6 @@ async def get_chatin(chatText: str):
|
||||||
|
|
||||||
# Main function to run the program
|
# Main function to run the program
|
||||||
def main(chatin):
|
def main(chatin):
|
||||||
check_updates()
|
|
||||||
chatin = "Guest:" + chatin
|
chatin = "Guest:" + chatin
|
||||||
|
|
||||||
# Get response from ollama
|
# Get response from ollama
|
||||||
|
@ -268,6 +267,7 @@ def main(chatin):
|
||||||
|
|
||||||
def cli():
|
def cli():
|
||||||
while True:
|
while True:
|
||||||
|
check_updates()
|
||||||
toChat = input("brain@localhost:~$ ")
|
toChat = input("brain@localhost:~$ ")
|
||||||
main(f"{toChat}")
|
main(f"{toChat}")
|
||||||
cli()
|
cli()
|
||||||
|
|
Loading…
Reference in a new issue