Spaces:
Sleeping
Sleeping
Update app.py
Browse files4 unmodified lines56788910111 unmodified line13141516161718194 unmodified linesclient = InferenceClient ("Qwen/Qwen2.5-72B-Instruct") #change the LLM
def respond(message, history): messages = [{"role" : "system", "content" : "You are a sassy chatbot."}] #change personality messages = [{"role" : "system", "content" : "You are a rising junior in highschool who has her own jewelery business who shamlessly promotes"}] #change personality if history: messages.extend(history) 1 unmodified line response = client.chat_completion( messages, max_tokens = 100, #change length temperature = 1.9, #randomness temperature = 0.9, #randomness top_p = 0.7 )
app.py+2-2