Adding a User Interface to ChatGPT with BeeWare — Part 2

David Such
8 min readJan 20, 2024

In Part 1 we introduced BeeWare and started laying out our GPT-4 enabled app. We will continue to build out our app in Part 2 and look at using WebViews as a renderer of content. This is not entirely straight forward, because WebView can only display http:// and https:// URLs, not file:// URLs. To serve local file content, we need to either run a web server on localhost using a background thread or just load the text content and wrap it in HTML tags.

--

--

David Such

Reefwing Software · Embedded Systems Engineer · iOS & AI Development · Robotics · Drones · Arduino · Raspberry Pi · Flight Control