Code Monkey home page Code Monkey logo

ollama-twice's Introduction

ollama-twice

Watch and hear endless conversations between two ollamas, hence the Two-Way Conversation Engine (TWICE)

Ever wondered what an endless dialogue between two AI chatbots would sound like? Well, now you can not only witness it but also listen to their ongoing banter.

Introducing ollama_twice.sh - A minimalist yet captivating setup where two bots, let's call them Ollama A and Ollama B, engage in eternal conversation.

Technical Highlights:

Simplicity: Crafted with almost pure Bash scripting, keeping it lightweight and easy to grasp.
Vocal: Uses espeak to vocalize the bots' conversation, allowing you to hear their exchange.
Visual: Concurrently prints the conversation, ensuring you don’t miss out on the witty back-and-forths.

Have fun!

ollama_twice.sh

  • Built with: Almost pure Bash
  • Requirements: Ollama with one or more models installed / espeak
  • Features: Prints phrases while you hear both bots talk

Getting started

$ mkfifo pipe1 pipe2

On terminal A

$ ./ollama_twice.sh A pipe1 pipe2 <name of ollama model to use>

On terminal B

$ ./ollama_twice.sh B pipe2 pipe1 <name of ollama model to use>

On terminal C - start the conversation

$ echo "Please tell me a short story" > pipe1

🤝 Support

Contributions, issues, and feature requests are welcome!

Give a ⭐️ if you like this project!

ollama-twice's People

Contributors

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