Spaces:
Sleeping
Sleeping
Update app.py
Browse files45 unmodified lines4647484950515245 unmodified linesdef chatbot_response(message, history):top_chunks = get_top_chunks(message)intro = "Hi! I'm a Rochester food assistant. I can help you find places to eat near the University of Rochester.\n\n"formated_response = "\n".join([f"• {chunk}" for chunk in top_chunks])return [{"responder": "chatbot", "content": intro + formatted}]chatbot = gr.ChatInterface(fn=chatbot_response, title="RAG Chatbot")45 unmodified lines4647484950515245 unmodified linesdef chatbot_response(message, history):top_chunks = get_top_chunks(message)intro = "Hi! I'm a Rochester food assistant. I can help you find places to eat near the University of Rochester.\n\n"formated = "\n".join([f"• {chunk}" for chunk in top_chunks])return [{"responder": "chatbot", "content": intro + formatted}]chatbot = gr.ChatInterface(fn=chatbot_response, title="RAG Chatbot")
app.py+1-1