Skip to content

Add FastAPI Server for API Usage + Fix Docker Errors (AWS Install Loop, NLTK Import)#303

Open
Prateek-Kumar98217 wants to merge 2 commits into
myshell-ai:mainfrom
Prateek-Kumar98217:main
Open

Add FastAPI Server for API Usage + Fix Docker Errors (AWS Install Loop, NLTK Import)#303
Prateek-Kumar98217 wants to merge 2 commits into
myshell-ai:mainfrom
Prateek-Kumar98217:main

Conversation

@Prateek-Kumar98217

@Prateek-Kumar98217 Prateek-Kumar98217 commented Oct 11, 2025

Copy link
Copy Markdown

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.

  1. Docker Error Fixes(Important)

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
Copy Markdown

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