Skip to content
    Back to all Bounties

    Earn 13,500 ($135.00)

    Time Remainingdue 2 years ago
    Canceled

    Building a Webhook, Retry Mechanism for Dreambooth Cartoon Generator

    niranjansenthil
    niranjansenthil
    Posted 2 years ago

    Bounty Description

    Problem Description

    This is for a project that involves creating an application that allows users to upload images and generate cartoons of themselves using the Replicate Dreambooth API. The basic functionality of the Flask API, which includes image uploading and Dreambooth model creation, is already in place. However, the project requires assistance with several additional features.

    1. a webhook endpoint and implementation is needed to monitor the progress of the Dreambooth model from start to finish. This will enable the tracking of job duration, providing insights into job completion timeframes. The Webhook will be called in my app to poll how long the duration of the model is taking.

    2. the implementation of retries and catches within the Dreambooth creation endpoint is required to mitigate potential errors due to Replicate timeouts or other issues.

    3. a NSFW checker is needed to ensure that users do not upload any nude images.

    Acceptance Criteria

    Webhook Feature:

    • The webhook feature should be able to provide real-time updates on the status of the Dreambooth model from the start to finish of the job.
    • The feature should be able to notify the user when the Dreambooth model is complete.
    • The feature should be able to display the duration of the job in real-time.

    Retries and Catches:

    • The Dreambooth model should automatically retry if a Replicate timeout occurs.
    • The Dreambooth model should be able to handle any other errors that may occur during the job and log them accordingly.
    • The Dreambooth model should automatically notify the user if an error occurs during the job.

    NSFW Checker:

    • The NSFW checker should be able to detect and flag any images that contain nudity or are otherwise inappropriate.
    • The NSFW checker should be able to differentiate between explicit and non-explicit images.
    • The NSFW checker should notify the user if an image is flagged as inappropriate and provide a reason for the flag.

    Technical Details

    Experience with Replicate and Python, as well as creating webhook and retry systems in APIs.

    Link to Project

    https://github.com/niranjansenthilkumar/dreambooth/blob/main/app.py