Skip to content

Conversation

@Prateek-Kumar98217
Copy link

Description:
This PR includes two separate but related updates focused on improving Docker-based usage and enabling the project to run as a microservice:

🚀 1. Added FastAPI Server for API Usage

Introduced a FastAPI-based server to expose functionality via a REST API.
This makes it easier to run the project as a microservice inside Docker or other environments.
Designed for convenience when integrating with other services or tools.

🐛 2. Docker Error Fixes

Resolved two errors that occurred when building/running the Docker container:

Infinite Loop: AWS Requirements Installation
The Docker build got stuck repeatedly trying to install AWS-specific Python packages.
Fixed by updating the python base image for proper dependency installation.

NLTK Import Error
The container failed on startup due to NLTK missing required data or improper initialization.
Fixed by ensuring required NLTK resources are downloaded during image build and handling import gracefully.

Error workarounds for windows. Fastapi server for api usage
issues resolved:
-infinite loop of aws specific requirements installation
-NLTK import error
@drjeon92
Copy link

thank you so much

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.

2 participants