GithubHelp home page GithubHelp logo

neskuchny / aicodeinterpreter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrewgcodes/aicodeinterpreter

0.0 0.0 0.0 162.76 MB

Home Page: replit.com/@olafblitz/codeinterpreter

License: MIT License

Shell 0.01% JavaScript 0.01% C++ 2.56% Python 92.03% C 0.58% Nu 0.01% Fortran 0.01% PowerShell 0.01% XSLT 0.34% Nix 0.01% HTML 0.01% CMake 0.56% Cython 3.90%

aicodeinterpreter's Introduction

Open Source AI Code Interpreter

img

If there's interest (50 stars), I'll add more features!

TLDR: This is a web app that lets you describe/ask GPT3.5/4 for code. The generated code will be automatically run for you and the output will be displayed. You can even make graphs and charts with this.

There are a lot of files, but you only need to care about main.py. Quickstart via Repl.it:

  • The easiest way to get started is to fork this repl.
  • In the Shell, do pip install streamlit.
  • Then hit run.
  • You may also need to install the openai package.
  • Then, in Secrets, add your OpenAI API key.

Local Installation:

  • You can also run the code locally. It's a Streamlit app so just run pip install streamlit, streamlit main.py, and download necessary packages with pip.
  • Set your OpenAI API key as a local variable.

Safety warning

You should not let other people use your copy of the Code Interpreter since exec() could be used to run malicious code. One way to prevent this is to restrict exec() to only using a couple defined functions but this limits the flexibility of what it can do for you.

Making a pie chart

img

Making a bar chart

img

aicodeinterpreter's People

Contributors

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