Code Monkey home page Code Monkey logo

rhyme_with_ai_1's Introduction

Local development

Create a conda virtual environment and activate it:

conda env create --file environment.yml
conda activate rhyme-with-ai

Install the rhyme_with_ai package and all its dependencies:

pip install --editable .

Download the weights of the models (if you get any errors, make sure these align with those specified in app/app.py)):

make download-data

Run the app:

make streamlit

Test the Docker containers by running:

make docker-build
make docker-serve

This project uses black for code formatting. To incorporate it in your version control follow the instructions below (copied from black's own readme):


Use pre-commit. Once you have it installed, add this to the .pre-commit-config.yaml in your repository:

repos:
-   repo: https://github.com/ambv/black
    rev: stable
    hooks:
    - id: black
      language_version: python3.7

Then run pre-commit install and you're ready to go.

Deploy to App Engine

Follow Google's documentation to set up Custom Runtimes in the App Engine Flexible Environment. Deploy the app:

gcloud app deploy

And you're done!

Todo

  • Integrate TokenWeighter in the RhymeGenerator.
  • Don't block on model loading or rhyme mutations (use API?).

rhyme_with_ai_1's People

Contributors

hgrif avatar rensdimmendaal avatar

Watchers

James Cloos avatar

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.