What’s the easiest way to add a Python script to my website?

0
0
Asked By CleverMuffin123 On

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

Answered By TechieNerd98 On

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?

CuriousCoder88 -

It pulls from gemini and generates an answer.

Answered By CodeWizard45 On

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.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.