Code Monkey home page Code Monkey logo

py_intercom's Introduction

PyIntercom

Requirements

This project is currently only tested on Linux, however it might run in other OS's ¯\(ツ)

Setup

for chatgpt, set the OPENAI_API_KEY environment variable, for example:

export OPENAI_API_KEY="sk-the-rest-of-the-key"

You can find or create your key at the OpenAI website

The project expects your desired microphone to be the default one.

Create a new virtual environent

Conda method (recommended)

conda env create -f environent.yml

Run the project:

conda activate py-intercom
python main.py

Pip + venv method

env_name=".venv"
python -m venv $env_name
source $env_name/bin/activate # Will have to be run one every new shell

Install the python dependencies:

$env_name/bin/pip install -r requirments.txt

Run the project:

$env_name/bin/python main.py

Usage

A simple autorun script could be written like the following:

#!/bin/bash
cd py_intercom_dir
export OPENAI_API_KEY="sk-the-rest-of-the-key"
# In the case conda does not recognize the activate command, uncomment the below line
# eval "$(conda shell.bash hook)"
conda activate py-intercom
python main.py

After completing the setup, you can run the program.

The program will only respond when you call it by it's name (default - Intercom / "אינטרקום")

The program has a few commands that will call their own code, anything else will be sent directly to ChatGPT

The program can take as arguments a config file, and commands index, by default located in the project as config.yml and commands.json

python main.py -c my_config_file.yml -C my_commands_index.json

py_intercom's People

Contributors

hohfchns avatar

Watchers

Kostas Georgiou avatar  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.