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

Expose Panza as a web server #12

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Expose Panza as a web server #12

wants to merge 4 commits into from

Conversation

shawseanyang
Copy link

@shawseanyang shawseanyang commented Jul 9, 2024

Expose Panza as a FastAPI web server that can be launched via ./run_services.sh.

Doing this as part of creating the gmail integration (chrome extension adds a button to the compose view that queries a locally hosted Panza server to easily ask Panza to write emails straight from Gmail). See https://github.com/shawseanyang/shawseanyang-panza-chrome-extension.

Credit to @ArmandNM for the original Flask code (switched to FastAPI) and for the suggestion to use FlaskAPI to prevent model reloading per request.

The web server requires requests to come with an API key header for security. API keys are stored in .env.

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

Successfully merging this pull request may close these issues.

None yet

1 participant