Subha95 commited on
Commit
edf6046
·
verified ·
1 Parent(s): 941240b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
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="text", # since your RAG returns plain text
18
- title="RAG Chatbot",
19
- description="Ask me anything from my PDF knowledge base."
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__":