Spaces:
Sleeping
Sleeping
Update app.py
Browse files52 unmodified lines535455565756575859606152 unmodified linesclient = InferenceClient("microsoft/phi-4")
def respond(message, history): messages = [{"role": "system", "content": "You are a friendly chatbot."}]
info = get_top_chunks(message, chunk_emeddings, text_chunks) messages = [{"role": "system", "content": f"You are a friendly chatbot using {info} to answer questions."}] if history: messages.extend(history)app.py+3-2