Spaces:
Sleeping
Sleeping
Update app.py
Browse files52 unmodified lines535455565758596052 unmodified linesclient = InferenceClient("microsoft/phi-4")def respond(message, history):messages = [{"role": "system", "content": "You are a friendly chatbot."}]if history:messages.extend(history)52 unmodified lines53545556575859606152 unmodified linesclient = InferenceClient("microsoft/phi-4")def respond(message, history):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