Spaces:
Runtime error
Runtime error
import flet as ft | |
def start_flet(port=5000): | |
def main(page: ft.Page): | |
page.title = "Nora AI" | |
page.add( | |
ft.Text("Welcome to Nora AI", size=30, weight=ft.FontWeight.BOLD), | |
ft.TextField(label="Type your message", autofocus=True), | |
ft.ElevatedButton("Send") | |
) | |
ft.app(target=main, port=port, view=ft.WEB_BROWSER) | |