generated from society-ai/simple-chatbot-openai
Meet your cheerful chat buddy! This app is your optimistic friend who always sees the bright side. From everyday questions to life’s big moments, get uplifting responses and positive vibes that’ll make you smile, no matter what you’re asking about!
Update app.py
All checks were successful
society-ai-hub-container-cache Actions Demo / build (push) Successful in 25s
All checks were successful
society-ai-hub-container-cache Actions Demo / build (push) Successful in 25s
This commit is contained in:
parent
6fd5a41267
commit
892372de46
2
app.py
2
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user