| from nicegui import ui | |
| # Basic Welcome Message | |
| ui.label('Hello! Tamara AI is ready!') | |
| # Add a simple button for testing | |
| def on_button_click(): | |
| ui.notify('Button was clicked!') | |
| ui.button('Press Me!', on_click=on_button_click).classes('mt-4') | |
| # Run the app | |
| ui.run( | |
| title='Tamara AI', | |
| host='0.0.0.0', | |
| port=7860, # Port 7860 for better compatibility | |
| show=True # Automatically open in browser if local | |
| ) | |