Giter Club home page Giter Club logo

magic-frame's Introduction

Magic Frame

A "magic frame" that displays generated art from audio prompts to an e-ink display.

See it in action on Twitter!

Magic.Frame.Demo.mp4

Features

Getting Started

  1. Clone Repo
  2. Create accounts for AssemblyAI, OpenAI, and Picovoice.
  3. Create .env from .env.template with keys
  4. Install
  5. Start
pip install .
python start

To Do

  • clean up globals in start.py
  • Better error handling, especially on file reads (e.g. what if no image gets downloaded from openai, then the dir doesn't have an image)
  • Consider saving text/image layout rather than recomputing
  • Consider allowing for more than 4 lines of text for very long strings
  • Consider putting prompt on display before submitting to OpenAI (immediately after getting prompt back from AssemblyAI)
  • Move more constants into the .env and .config files
  • Fix the latency issues in start.py, specifically the 1second delay in the random image display
  • Refactor the text rendering in display.py/render so it's in it's own function
  • Fix the text rendering to change text sizes if text is too long
  • Consider making Jarvis slightly easier to trigger

Dependencies

Hardware

Total: $300.22

Libraries

Issues

NUMPY (OpenAI dependency)

Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed.

Ended up uninstalling numpy and installying python3-numpy

pip uninstall numpy  # remove previously installed version
apt install python3-numpy

magic-frame's People

Contributors

sambroner avatar

Watchers

 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.