AI Assistant Web is a new UI written by React for tori29umai's AI Assistant, with some new features.

Run by nodejs directly.
- install node
- git clone this repo
- npm install
- npm start
- run AI Assistant with parameters
--cors-allow-origins "http://127.0.0.1:7860,http://localhost:3000"
- open localhost:3000
Run within AI Assistant.
- use my branch for AI Assistant.
- run AI Assistant with parameters
--cors-allow-origins "http://127.0.0.1:7860,http://localhost:3000"
- access to http://127.0.0.1:7860/file=index.html
(This is a temp approach, due to gradio limitation, it could not be refreshed browser manually.)
- Full implementation of the existing AI Assistant functions.
- A more intuitive way to select the light source position in the lighting tag.

- For some functions using sliders, images can be generated directly without clicking a button.
- Added functionality to extract transparent line art.

- Added functionality to extract positive and negative shapes based on lighting images.

- Object removal from images.
- Background removal from images.
The reason for this is that when I was developing several plugins for SD-webui last year, I found that although Gradio can quickly build an AI application, it has significant limitations in terms of UI. While it is possible to use some technical means to make Gradio support more complex UIs (for example, when implementing sd-webui-3d-editor, I integrated the complete Three.js editor, or integrated React programs in other plugins, such as sd-canvas-editor, from my personal experience, there is no need to use Gradio for an independent program (with SD-webui as the backend).
Using React directly, as an industry standard, along with other related libraries, makes front-end development easier, more controllable, and aesthetically pleasing. It can also easily achieve some functions that would require very complex steps in Gradio or are simply not achievable.
Meanwhile, since this new UI is an independent front-end application, it means it can use other programs as backend engines. Therefore, after completing the above functions, I will start working on an AI Assistant based on ComfyUI as the backend, using this UI as the front end.
As an amateur painting enthusiast, I have been switching between "coding" and "drawing" every day recently while developing this program. I want to understand the needs of artists from the perspective of a painting enthusiast, and this understanding can only be felt by picking up a pen and drawing myself.
Lastly, thanks to tori29umai for creating such a fantastic program!
- original implement by tori29umai