Giter VIP home page Giter VIP logo

ausmi's Introduction

A.U.S.M.I. - Apenas Um Sistema Muito Inteligente

Welcome to the A.U.S.M.I. chatbot for Telegram, inspired by the virtual assistant J.A.R.V.I.S. from the Marvel universe.

A.U.S.M.I. uses the GPT-3.5-turbo model to generate responses based on various topics, and is able to understand both text and audio messages.

To make this possible, the project utilizes several APIs including OpenAI's Whisper for text transcription, OpenAI's GPT for response generation, Google Text To Speech for text to speech conversion, and Pydub for audio file format conversion.

To learn more about the project, please see the A.U.S.M.I. article on Medium, which provides detailed information: A.U.S.M.I. Article on Better Programming

You may also want to check A.U.S.M.I. demo on Youtube: A.U.S.M.I. Demo on Youtube

Requirements

To use A.U.S.M.I., you will need a Telegram bot, OpenAI API access token, and python3 installed. Ensure that the OPENAI_TOKEN and TELEGRAM_TOKEN environment variables are set with your respective credentials.

You may also need to install ffmpeg (ubuntu example)

sudo apt-get -y update
sudo apt-get install -y ffmpeg

Getting started

Follow the steps below to get started:

Clone the repository using the command:

git clone [email protected]:marciojmo/ausmi.git

Navigate to your project folder and install dependencies using pip:

pip install --upgrade pip
pip install -r requirements.txt

Run the command to start the bot.

python3 bot.py

Alternatively, if you have Docker installed, you can run A.U.S.M.I. inside a Docker container by following these instructions:

Build the bot image using the Dockerfile located in the project root folder with this command:

docker build -t ausmi .

Run the bot container ensuring you specify your OpenAI and Telegram tokens:

docker run -d -e OPENAI_TOKEN=<your_openai_token> -e TELEGRAM_TOKEN=<your_telegram_token> ausmi

Schrodinger`s Live Demo

You can see a live demo of A.U.S.M.I. by sending /ajuda to @ausmibot on Telegram. Note that the bot might or might not be running due to its limited budget for accessing OpenAI`s APIs.

ausmi's People

Contributors

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