From bf836f38c63ea48687eb32b7942a67e35818df82 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 27 Feb 2024 05:52:48 +0100 Subject: [PATCH] fix wrong merge --- source/bot.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/source/bot.py b/source/bot.py index 1ae3f45..4cfeb74 100644 --- a/source/bot.py +++ b/source/bot.py @@ -121,15 +121,4 @@ async def restart_task(): time_until_shutdown = (shutdown_time - datetime.datetime.now()).total_seconds() await asyncio.sleep(time_until_shutdown) os._exit(1) -asyncio.run(main()) -======= -import ollama -ollama.pull('llama2') -ollama.list() -response = ollama.chat(model='llama2', messages=[ - { - 'role': 'user', - 'content': 'Why is the sky blue?', - }, -]) -print(response['message']['content']) +asyncio.run(main()) \ No newline at end of file