File size: 441 Bytes
cf1b384
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr
from rag import ask_baba

with gr.Blocks() as demo:
    gr.Markdown("# πŸ™ Ask Brahmarshi Baba Milind")
    gr.Markdown("This is a satire demo. All answers are fictional.")
    chatbot = gr.ChatInterface(
        fn=ask_baba,
        title="Baba Milind Chatbot",
        description="Ask anything; Baba Milind will answer from sacred texts of Milind-gatha."
    )

if __name__ == "__main__":
    demo.launch(share=True)