Spaces:
Build error
Build error
Update app.py
Browse files4 unmodified lines5678910111213141516174 unmodified linesclient = InferenceClient("HuggingFaceH4/zephyr-7b-beta") #change the LLMdef respond(message, history):messages = [{"role": "system", "content": "You are a mean chatbot who has no life."}]if history:messages.extend(history)messages.append({"role":"user", "content": message})response = client.chat_completion(messages,max_tokens = 1, #change the lengthtemperature = 0.5,top_p = 0.7)4 unmodified lines5678910111213141516174 unmodified linesclient = InferenceClient("HuggingFaceH4/zephyr-7b-beta") #change the LLMdef respond(message, history):messages = [{"role": "system", "content": "You are a professional interviewer."}]if history:messages.extend(history)messages.append({"role":"user", "content": message})response = client.chat_completion(messages,max_tokens = 50, #change the lengthtemperature = 0.5,top_p = 0.7)
app.py+2-2