Skip to content

Latest commit

 

History

History
79 lines (50 loc) · 2.11 KB

README.md

File metadata and controls

79 lines (50 loc) · 2.11 KB

Toy Code Interpreter

Project Description

The Toy Code Interpreter serves as a simplified replica of OpenAI's ChatGPT Code Interpreter. Designed to unravel the complexities of the ChatGPT Code Interpreter, this project sheds light on the intricate processes involved in prompt formulation, code generation and execution, as well as the presentation of final results.

Workflow

Upload Dataset
       |
       V
Ask ChatGPT Questions
       |
       V
Extract Necessary Code
       |
       V
Execute Code in InteractiveShell
       |
       V
Display Results

Installation / Usage

  1. Clone the project to your local machine

  2. Navigate into the project directory

  3. Config the Azure API or OPENAI_API_KEY in the get_code.py

  4. Launch the Web UI

python main.py
  1. Open your web browser and navigate to the following URL
http://127.0.0.1:5000/
  1. Use the web UI to upload your dataset

img.png

  1. Input your question into the provided field and send. The system will generate an answer for you.

img.png

  1. After executing the generated code, the system will display additional text information related to your query.

img.png

  1. The system also provides visualized data in the form of plots related to your query.

img.png

References

This project was inspired by and references the following projects:

Limitation

Please note, we have substantially simplified the implementation of this project, keeping it less code-intensive for the benefit of beginners. However, it's important to understand that this approach has certain limitations when compared to the built-in code interpreter of ChatGPT, and thus, it isn't suitable for conducting complex analyses.

Contributing

Contributions of any kind are welcome, including but not limited to submitting issues, suggesting improvements, or directly submitting code.

License

MIT

Contact

If you have any questions or suggestions, feel free to contact me via email: ([email protected]).