Git Product home page Git Product logo

horizon_nsfw's Introduction

Installation Into Local:

  1. Ensure the python3 version is 3.8.12. To check, run python3 -V. If you do not have it, you can install it here

  2. Setup a virtual environment in the project folder using python3: $ python3 -m venv venv

  3. Start the virtual environment. You should see (venv) in as part of the command prompt once it is started: $ source venv/bin/activate NOTE: To stop the virtual environment at any time, run (venv) $ deactivate

  4. Install all the requirements, including flask. Be sure not to use sudo as this will install flask in the global environment instead of the virtual environment: (venv) $ pip3 install -r requirements.txt

  5. Start server ==> uvicorn main:app --host 0.0.0.0 --port 8000

Installation Into Production:

  1. login with root

  2. cd ..

  3. cd /var/horizon_nsfw

  4. Start server ==> uvicorn main:app --host 0.0.0.0 --port 8000

free txt

pip3 freeze > requirements.txt

install multiple env

https://levelup.gitconnected.com/install-multiple-python-versions-on-mac-a58b1966825f

import error of opennsfw2

RUN apt-get update RUN apt-get install ffmpeg libsm6 libxext6 -y

Test Dataset

video==> https://nsfw.xxx/ image==> https://github.com/EBazarov/nsfw_data_source_urls

Used Modules

==> https://github.com/bhky/opennsfw2

https://www.cyberciti.biz/faq/how-to-install-docker-on-amazon-linux-2/

build docker without cache

#!/bin/bash docker build --no-cache . -t nsfw_backend3.8:latest

sudo systemctl enable docker.service sudo systemctl start docker.service sudo systemctl status docker.service

check runnign process

  1. docker ps

stop running process docker stop container_hash

nginix

sudo service nginx start sudo service nginx status sudo service nginx stop

horizon_nsfw's People

Contributors

ryzerapp 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.