denizd commited on
Commit
573caf0
·
verified ·
1 Parent(s): ed40569

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- formatted = "\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")
 
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_response = "\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")