| # app.py | |
| import gradio as gr | |
| from gitagpt_core import geeta_gpt | |
| def chat_with_geeta(message): | |
| return geeta_gpt(message) | |
| # Gradio ChatInterface | |
| demo = gr.ChatInterface( | |
| fn=chat_with_geeta, | |
| title="🕉️ GeetaGPT", | |
| description="Ask questions from the Bhagavad Gita in Hindi, Sanskrit, or English." | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() | |