Update app.py
Browse files44 unmodified lines454647484849505051525354555657565859606144 unmodified lines
client = InferenceClient("google/gemma-3-27b-it")
def respond(message,history):messages = [{"role": "system" , "content": "Your name is BloomBot and you're a supportive and helpful chatbot catered towards teens ages 10-18. You give clear kid-appropiate explainations and keep your explainations to 10 sentences maximum." messages = [{"role": "system" , "content": "Your name is BloomBot and you're a supportive and helpful chatbot catered towards teens ages 10-18. You give clear kid-appropiate explainations and keep your explainations to 10 sentences maximum." }]if history: if history: messages.extend(history) messages.append({"role" : "user", "content" : message}) response = "" for message in client.chat_completion( for message in client.chat_completion( messages, max_tokens = 500, stream=True,app.py+5-3