Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project enhancements for integration with other projects #87

Open
1M4nt0 opened this issue Mar 24, 2023 · 1 comment
Open

Project enhancements for integration with other projects #87

1M4nt0 opened this issue Mar 24, 2023 · 1 comment

Comments

@1M4nt0
Copy link
Contributor

1M4nt0 commented Mar 24, 2023

You should consider to split backend from frontend to give the project better integrability with other projects.
The backend could be published in a pip package and be usable without cloning the frontend part too.
For example I would like to integrate the backend part into my discord bot but at the time I have to clone the entire project.

To get the best at all, providing an interface with the backend with REST APIs could make the development of a frontend way faster and easier and above all i think it would have more interest by frontend developers which they can use the framework they want.
Flask is a good framework but I think is not so used by developers, instead for example of React or Angular that are so much used.

@michaelthwan
Copy link
Owner

michaelthwan commented Mar 24, 2023

@1M4nt0 Your concern is valid.
I treat the flask web UI as an advanced gradio for prettier demonstration of the capability, rather than a production UI.
Therefore I didn't separate them into folders (e.g. will increase my deployment complexity, 2 app in one repo).
Pushing the searchgpt-core components to pypi is also easier for people to use.
I will consider packing it better later. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants