Code Monkey home page Code Monkey logo

ai-digital-frame's Introduction

AI digital frame

start

  1. install requirements. Note: when you install torch, make sure you install correct cuda version.
  2. go to config.json to set openai => api_key
  3. (Optional) if you wanna use stable diffusion as img generation api, make sure you have start AUTOMATIC1111/stable-diffusion-webui and has start flag --api. And then go to config.json change "image_generate_api": "dall-e" as "image_generate_api": "sd".
  4. if you wanna use line bot function, don't forget install ffmpeg
  5. start server
python app.py [-h] [-l {CRITICAL,FATAL,ERROR,WARN,WARNING,INFO,DEBUG,NOTSET,critical,fatal,error,warn,warning,info,debug,notset}] [--env ENV] [--host HOST] [--port PORT]

code

  • app.py: 程式碼進入點
  • util.py: 輔助函數
  • test.py: 用來測試用的code
  • config.json: 設定檔

api doc

You can start the server and go to http://127.0.0.1:5000 to read the doc

ai-digital-frame's People

Contributors

asadfgglie avatar yu2535 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

yu2535

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.