Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,12 +11,14 @@ def respond(message, history):
|
|
| 11 |
response = get_answer(message)
|
| 12 |
return response
|
| 13 |
|
|
|
|
|
|
|
| 14 |
# Simple Gradio Chat Interface
|
| 15 |
chatbot = gr.ChatInterface(
|
| 16 |
fn=respond,
|
| 17 |
-
type="
|
| 18 |
-
title="
|
| 19 |
-
description="Ask me anything from my
|
| 20 |
)
|
| 21 |
|
| 22 |
if __name__ == "__main__":
|
|
|
|
| 11 |
response = get_answer(message)
|
| 12 |
return response
|
| 13 |
|
| 14 |
+
|
| 15 |
+
|
| 16 |
# Simple Gradio Chat Interface
|
| 17 |
chatbot = gr.ChatInterface(
|
| 18 |
fn=respond,
|
| 19 |
+
type="messages", # since your RAG returns plain text
|
| 20 |
+
title="Harry Potter Wikipedia",
|
| 21 |
+
description="Ask me anything from my knowledge base."
|
| 22 |
)
|
| 23 |
|
| 24 |
if __name__ == "__main__":
|