| import gradio as gr | |
| from gitagpt_core import geeta_gpt | |
| # Define chatbot function | |
| def chat_with_geetagpt(message, history): | |
| response = geeta_gpt(message) | |
| return response | |
| # Simple Gradio Chatbot UI | |
| demo = gr.ChatInterface( | |
| fn=chat_with_geetagpt, | |
| title="ποΈ GeetaGPT β Bhagavad Gita Wisdom", | |
| description="Ask questions in English or Hindi and receive divine guidance from the Bhagavad Gita.", | |
| theme="soft", # or 'default', 'glass' | |
| ) | |
| demo.launch() |