Install Writer Framework
pip
. Open your command line interface and type:Test installation with demo application
ai-starter
template. This template showcases how quickly you can build AI-powered applications with the Writer Framework.
Use the following command to generate the app structure:
main.py
- The entry point for the app. You can import anything you need from here..wf/
- This folder contains the UI component declarations. Maintained by the Writer Framework’s visual editor.static/
- This folder contains front-end static files which you might want to distribute with your app, such as images and stylesheets.Writer Framework editor opens at https://localhost:4005
Launch the Editor
--enable-remote-edit
.Add Components to Your Canvas
Writer Framework launches the app at https://localhost:3005
Customize Component Settings
Change the App Name in main.py
main.py
in the root of your project folder. Locate the following line:"AI STARTER"
to something unique, like "My First Writer App"
. Save the file, and you’ll see the updated name reflected immediately in the editor.App name updated in the Writer Framework editor
run
command, which will allow others to run, but not edit, your Framework app.
--host 0.0.0.0
enables you to share your application in your local network.