Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def get_top_chunks(query):
|
|
| 46 |
def chatbot_response(message, history):
|
| 47 |
top_chunks = get_top_chunks(message)
|
| 48 |
intro = "Hi! I'm a Rochester food assistant. I can help you find places to eat near the University of Rochester.\n\n"
|
| 49 |
-
|
| 50 |
return [{"responder": "chatbot", "content": intro + formatted}]
|
| 51 |
|
| 52 |
chatbot = gr.ChatInterface(fn=chatbot_response, title="RAG Chatbot")
|
|
|
|
| 46 |
def chatbot_response(message, history):
|
| 47 |
top_chunks = get_top_chunks(message)
|
| 48 |
intro = "Hi! I'm a Rochester food assistant. I can help you find places to eat near the University of Rochester.\n\n"
|
| 49 |
+
formated = "\n".join([f"• {chunk}" for chunk in top_chunks])
|
| 50 |
return [{"responder": "chatbot", "content": intro + formatted}]
|
| 51 |
|
| 52 |
chatbot = gr.ChatInterface(fn=chatbot_response, title="RAG Chatbot")
|