Update main.py
This commit is contained in:
parent
a4c26d93de
commit
e7cb3d614f
1 changed files with 4 additions and 4 deletions
8
main.py
8
main.py
|
@ -250,16 +250,16 @@ async def get_emote():
|
|||
async def get_chatin(chatText: str):
|
||||
return await main(chatText)
|
||||
|
||||
# Main function to run the program
|
||||
# Main function to run the program
|
||||
def main(chatin):
|
||||
chatin = "Guest:" + chatin
|
||||
|
||||
# Print ollama response and what it said
|
||||
print(f"You: {chatin}")
|
||||
print(f"AI:")
|
||||
# Get response from ollama
|
||||
message = llm(f"(Additional context for reply: {completeContext}), reply to this: {chatin}")
|
||||
|
||||
# Print ollama response and what it said
|
||||
print(f"You: {chatin}")
|
||||
print(f"AI: {message}")
|
||||
|
||||
return f"You: {chatin}\n${name}: ${message}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue