| import gradio as gr | |
| # Simple chatbot function | |
| def reply(message, history): | |
| return f"π€ AnshAI: You said β {message}" | |
| # Chat interface | |
| demo = gr.ChatInterface( | |
| fn=reply, | |
| title="β¨ AnshAI - Your Personal AI", | |
| description="Ask me anything! AnshAI will reply instantly.", | |
| theme="soft", # you can try "default", "monochrome", or "glass" | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch() |