Git Product home page Git Product logo

ebook-translate's Introduction

ebook-translate README

  • the following is a quick FastAPI app that I will use to run the translation model. Ideally, this will encompass different models, and the specified model to use (and langauge) will determine the response of the api.

  • this will more than likely be hosted on a amazon EC2.

supported language translations

  • en-es

ebook-translate's People

Contributors

bllendev avatar

Watchers

 avatar

ebook-translate's Issues

get fastapi app to work in amazon web service

  1. Install the EB CLI:

  2. Create a new directory:

    • Create a new directory for your project and navigate to it in your terminal.
  3. Initialize the EB CLI:

    • Run eb init -p docker <YOUR_APP_NAME> (replace <YOUR_APP_NAME> with a name for your application).
  4. Create a Dockerrun.aws.json file:

    • Create a file named Dockerrun.aws.json in your project directory, and add the following content:
{
  "AWSEBDockerrunVersion": "1",
  "Image": {
    "Name": "<DOCKERHUB_USERNAME>/<IMAGE_NAME>:<TAG>",
    "Update": "true"
  },
  "Ports": [
    {
      "ContainerPort": "8000"
    }
  ]
}

5. **Build and push your Docker image**:
   - Build your Docker image using `docker build -t <DOCKERHUB_USERNAME>/<IMAGE_NAME>:<TAG> .`
   - Log in to Docker Hub using `docker login`
   - Push your Docker image using `docker push <DOCKERHUB_USERNAME>/<IMAGE_NAME>:<TAG>`

6. **Configure your environment**:
   - Run `eb create <YOUR_ENV_NAME> --cname <YOUR_UNIQUE_CNAME> --instance_type t2.micro --single`

7. **Monitor the environment**:
   - Monitor the environment creation process using the Elastic Beanstalk web console or by running `eb status`.

8. **Access your application**:
   - Access your FastAPI application using the URL provided by Elastic Beanstalk (use the Elastic Beanstalk web console or run `eb open`).

9. **Updating your application**:
   - Rebuild and push the Docker image to your container registry.
   - Run `eb deploy` to update your Elastic Beanstalk environment.

10. **Clean up**:
   - Run `eb terminate <YOUR_ENV_NAME>` to terminate your environment when you no longer need it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.