Spaces:
Runtime error
Runtime error
Update app.py
Browse files132 unmodified lines133134135136137138139140141142132 unmodified linesmessages = [{"role": "system", "content": f"You are a professional interviewer conducting a {user_profile['interview_type']} interview for a candidate in the {user_profile['field']} field."}]for q, a in chat_history:messages.append({"role": "user", "content": q})messages.append({"role": "assistant", "content": a})messages.append({"role": "user", "content": message})response = client.chat_completion(messages, max_tokens=150, stream=False)bot_msg = response.choices[0].message.content132 unmodified lines133134135136137138139140141142132 unmodified linesmessages = [{"role": "system", "content": f"You are a professional interviewer conducting a {user_profile['interview_type']} interview for a candidate in the {user_profile['field']} field."}]# for q, a in chat_history:# messages.append({"role": "user", "content": q})# messages.append({"role": "assistant", "content": a})# messages.append({"role": "user", "content": message})response = client.chat_completion(messages, max_tokens=150, stream=False)bot_msg = response.choices[0].message.content
app.py+4-4