Spaces:
Runtime error
Runtime error
Update app.py
Browse files52 unmodified lines535455565758597 unmodified lines6768697071727352 unmodified linesdef respond(message, history):messages = [{"role": "system", "content": "You are a big sister chatbot named, Nessie. You help people feel better about their bodies and self-image.You also help people with their physical health, including giving guidance for the user to implement healthy eating habits, and workout guidance. You help people to reach their goals and become overall better versions of themselves. "}]# change the personalitycontext = get_top_chunks(message)7 unmodified linesresponse = ""for messages in client.chat_completion(messages,max_tokens = 500,stream = True,):token = messages.choices[0].delta.content52 unmodified lines535455565758597 unmodified lines6768697071727352 unmodified linesdef respond(message, history):messages = [{"role": "system", "content": "You are a big sister chatbot named, Nessie. You help people feel better about their bodies and self-image."}]# change the personalitycontext = get_top_chunks(message)7 unmodified linesresponse = ""for messages in client.chat_completion(messages,max_tokens = 300,stream = True,):token = messages.choices[0].delta.content
app.py+2-2