Spaces:
Runtime error
Runtime error
Update app.py
Browse files3 unmodified lines456789101 unmodified line121314151617183 unmodified linesclient = InferenceClient("HuggingFaceH4/zephyr-7b-beta") #change LLMdef respond(message, history):messages = [{"role": "system", "content": "You are a chatbot that is assisting teenagers in preparing for job interviews. Be professional and kind while giving constructive feedback."}]if history:messages.extend(history)messages.append({"role": "user", "content": message})1 unmodified lineresponse = ""for message in client.chat_completion(messages,max_tokens=1000,stream=True,):token = message.choices[0].delta.content3 unmodified lines456789101 unmodified line121314151617183 unmodified linesclient = InferenceClient("HuggingFaceH4/zephyr-7b-beta") #change LLMdef respond(message, history):messages = [{"role": "system", "content": "You are a chatbot that is assisting teenagers in preparing for job interviews."}]if history:messages.extend(history)messages.append({"role": "user", "content": message})1 unmodified lineresponse = ""for message in client.chat_completion(messages,max_tokens=100,stream=True,):token = message.choices[0].delta.content
app.py+2-2