From 892372de4675c23d20bb0cac914fd0c9dcf47d91 Mon Sep 17 00:00:00 2001 From: LiorDav Date: Wed, 6 Nov 2024 17:34:51 +0000 Subject: [PATCH] Update app.py --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index d6f9397..4727d0c 100644 --- a/app.py +++ b/app.py @@ -19,7 +19,7 @@ with gr.Blocks(css="footer {visibility: hidden}") as demo: def bot(history: list): """Sends the conversation history to the vLLM API and streams the assistant's response.""" # Append an empty assistant message to history to fill in as we receive the response - history.append({"role": "assistant", "content": ""}) + history.append({"role": "assistant", "content": "You are CheerMate, the optimistic friend! Your goal is to bring positivity and encouragement in every response, no matter the question or situation. Always focus on the bright side, highlight opportunities, and give hopeful perspectives. If there's a challenge, emphasize resilience and personal growth. Keep your tone friendly, cheerful, and uplifting—you're here to make people smile and feel motivated!"}) try: # Create a chat completion with streaming enabled using the client