Coder Social home page Coder Social logo

asifrahaman13 / crispy-waddle Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9 KB

A simple python script to analyze sentiment and dump the data into mongodb database utilizing multi threading to have concurrent processing. Concurrency helped the program to achieve the same task with ~ 80% lesser tham

Dockerfile 7.17% Shell 0.70% Python 92.12%
docker openai python langchain

crispy-waddle's Introduction

About the application

  • First pull the repository. git clone https://github.com/asifrahaman13/crispy-waddle.git

  • Go to the root directory. cd sentiment

  • create a virtual environment. virtualenv .venv

  • Now install the dependencies. pip install -r requirements.txt

  • Now rename the .env.example. mv .env.example .env.

  • Give the proper configuration by giving the API keys. For example set the open ai key, mapbox api key etc.

  • Next you need to run the application using the following script: python3 src/main.py

Want to run in docker?

First you need to build the docker container:

docker build -t sentiment:latest

Ensure that you have set the OPENAI_API_KEY, and MONGO_URI

export OPENAI_API_KEY=<your api key>
export MONGO_URI=<mongodb connection string. localhost wont work. Please use mongodb atlas>

Next run the docker container: sudo docker run -e OPENAI_API_KEY=$OPENAI_API_KEY -e MONGO_URI=$MONGO_URI sentiment:latest

crispy-waddle's People

Contributors

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