I've got a basic website that I got made a few years ago. Now, I want to add a custom Python script I created. It's a simple Q&A tool where users can ask a question and get an answer back. What's the easiest way to make this work on my site?
2 Answers
Consider using FastAPI. It's pretty straightforward and lets you put your script behind an HTTP endpoint. As for your script, how does it work to answer questions?
If your site is static, it might just be easier to rewrite your Python script in JavaScript. Then you can run everything directly in the browser without needing a server.
It pulls from gemini and generates an answer.