Business Client need Web Development

Contact person: Business Client

Phone:Show

Email:Show

Location: City of Westminster, United Kingdom

Budget: Recommended by industry experts

Time to start: As soon as possible

Project description:
"My Stack: My service runs on [login to view URL] using FastAPI. It already handles uploads, GPU inference (FaceFusion 3.3.2), and file storage.

The Task: I need you to implement two missing backend features: an Asynchronous Queue and a Face Analysis endpoint. Please rely on Modal’s native task primitives ([login to view URL], [login to view URL]) rather than external queues like Celery/Redis.

1. Async Queue (Fixing Timeouts)
Refactor: Update the /swap endpoint to be non-blocking. It should return a JSON payload with a job_id immediately.

Background Worker: Push the heavy FaceFusion work to a background Modal function (.spawn()).

State: Persist the job status in a modal.Dict.

Polling: Create a /status/{job_id} endpoint that returns: queued, processing, completed (with result URL), or failed.

2. Face Analysis (New Feature)
Endpoint: Create /analyze-video that accepts a video file.

Logic: Use Google MediaPipe (for commercial license safety) to scan the video.

Response: Return a JSON list containing:

face_id: A unique ID (index or hash) for each distinct person found.

thumbnail: A base64-encoded jpg of that face (cropped from the first clear frame).

3. Mapped Swap Logic
Update: Modify the swap worker to accept an optional mapping dictionary: {"0": "[login to view URL]", "1": "[login to view URL]"}.

Logic: If a map is provided, swap specific source images onto specific target Face IDs. If no map is provided, fall back to the current "swap all" or "swap one" behavior.

Code Guidelines
Python Version: Use Python 3.10 (matches current stable backend).

Testing: The solution must run on Modal (modal deploy or modal serve). I do not need a local Docker setup; testing via a standard Python venv or Modal dev environment is fine.

Style: Follow the existing [login to view URL] pattern (FastAPI decorators).

Deliverables:

Updated facefusion_backend.py.

A helper module (e.g., [login to view URL]) for the MediaPipe logic.

A simple [login to view URL] script demonstrating the new Async workflow (Submit -> Poll -> Result)." (client-provided description)


Matched companies (4)

...

TG Coders

We create custom apps for businesses and startups TG Coders is a technology partner specializing in creating custom mobile and web applications for … Read more

...

Crystal Infoway

Crystal Infoway is a well-known IT Service Provider who works to Bring Ideas to Reality. We work to shape the dreams victoriously using Design, Techn… Read more

...

SJ Solutions & Infotech

SJ Solutions & Infotech is a team of highly experienced and dynamic professionals who have an enormous passion for technology. In this fast changing … Read more

...

Chirag Solutions

Chirag Solutions is extending its services in website designing & development and software development. Our web and software development is committed… Read more