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 |
numbered_response = "\n".join([f"{i+1}. {chunk}" for i, chunk in enumerate(top_chunks)])
|
| 49 |
-
return [{"
|
| 50 |
|
| 51 |
chatbot = gr.ChatInterface(fn=chatbot_response, title="RAG Chatbot")
|
| 52 |
chatbot.launch()
|
|
|
|
| 46 |
def chatbot_response(message, history):
|
| 47 |
top_chunks = get_top_chunks(message)
|
| 48 |
numbered_response = "\n".join([f"{i+1}. {chunk}" for i, chunk in enumerate(top_chunks)])
|
| 49 |
+
return [{"responder": "chatbot", "content": numbered_response}]
|
| 50 |
|
| 51 |
chatbot = gr.ChatInterface(fn=chatbot_response, title="RAG Chatbot")
|
| 52 |
chatbot.launch()
|