I'm working on an app that processes PDFs by extracting text and sending it through a Python script that uses an AI model for processing. The results are displayed in markdown format within the app. Currently, I'm using Flask in Python with a local host setup. I'm considering moving to a deployment-ready workflow, possibly on AWS EC2, but I'm uncertain whether I also need to host the uploaded PDFs and how to go about that. Any tips or resources for setting up a straightforward, production-ready backend will be greatly appreciated!
2 Answers
Do you run the AI model locally or is it hosted remotely? Knowing this will help in figuring out your infrastructure needs. If it's GPT, then it’s not local, so just keep that in mind when planning your deployment.
You'll definitely need a web server for the front end, and a Python server for your back end, plus some storage for the PDFs while they're being processed. You can manage everything on a single server, or go for a cloud-based service if you want scalability. It's flexible based on how you've designed your app.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically