Spaces:
Sleeping
Sleeping
Update app.py
Browse files44 unmodified lines454647484950515244 unmodified linesdef chatbot_response(message, history):top_chunks = get_top_chunks(message)numbered_response = "\n".join([f"{i+1}. {chunk}" for i, chunk in enumerate(top_chunks)])return [{"role": "assistant", "content": numbered_response}]chatbot = gr.ChatInterface(fn=chatbot_response, title="RAG Chatbot")chatbot.launch()44 unmodified lines45464748495051525344 unmodified linesdef chatbot_response(message, history):top_chunks = get_top_chunks(message)intro = "Hi! I’m your Rochester food assistant 🍽️ Here are some great nearby options:\n\n"response = intro + "\n".join([f"• {chunk}" for chunk in top_chunks])return [{"role": "assistant", "content": response}]chatbot = gr.ChatInterface(fn=chatbot_response, title="RAG Chatbot")chatbot.launch()
app.py+3-2