Code Monkey home page Code Monkey logo

omegalurk's Introduction

docker build pytest

TL;DR

4Chan information extraction engine with a Streamlit interface.

Deploy

To deploy the streamlit app with Docker:

docker run -d \
           --name omegalurk \
           -v omegalurk_models:/models \
           -p 8501:8484 \
           ghcr.io/ragingtiger/omegalurk:master

Then simply open your browser to http://localhost:8484 and you should see the streamlit interface.

Testing

Build the automated tests locally as follows (first cd OmegaLurk):

docker build --target test \
             -t omegalurk:tests \
             . \
             --load

Then run tests as follows:

docker run --rm \
           -v $PWD:/OmegaLurk # optional
           -it
           omegalurk:tests

NOTE: The -v flag is optional, and is only necessary if you want to develop the code locally, and test the changes on your local copy of the source code.

FAQ

  • How to change time zone?

    • The default time zone is America/New_York, but this can be changed by simply setting the TZ environment variable on docker run as follows:
      docker run -d \
                 --name omegalurk \
                 -v omegalurk_models:/models \
                 -p 8501:8484 \
                 -e TZ='Asia/Bangkok'
                 ghcr.io/ragingtiger/omegalurk:master
      
      This will set the time zone inside the container to Asia/Bangkok. For a list of available time zones plese see here.
  • Where are the HuggingFace models downloaded to?

    • The models are downloaded (cached) in the /models transformers directory, which the docker command in the deploy section manages with Docker volumes.
  • Why is my model taking so long to execute?

    • When models are run for the first time, you can expect it will take some time to download from the Model Hub. You can always monitor the Docker logs to see the progress of the model downloads, simply run docker logs -f omegalurk to see them.

omegalurk's People

Contributors

ragingtiger avatar

Watchers

 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.