Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 2.19 KB

README.md

File metadata and controls

62 lines (42 loc) · 2.19 KB

📊 Charts-Generator-ChatGPT-Plugin

This plugin uses OpenAI's ChatGPT to turn text or URL content into ECharts visualizations. 🚀🤖

Description

The Charts-Generator-ChatGPT-Plugin leverages the capabilities of OpenAI's ChatGPT to interpret and analyze user input or web content, and generate corresponding statistical charts using ECharts. It takes a text description or a URL as input, summarizes the content, creates a description that conforms to a statistical chart, and finally converts the description into a chart configuration form that can be implemented by the ECharts library.

Here's a flowchart that illustrates the process:

graph LR
    A[User Input] --> B{URL or Text?}
    B -->|URL| D1[third-party plugin.]
    B -->|Text| D[Process Text Description]
    D1 --> D

    D --> ChatGPT[ChatGPT Convert to ECharts Configuration]

    ChatGPT --> Plugin(Covert Echarts Configuration to pyecharts options)
    Plugin --> G[Output ECharts Image or Html]
Loading

third-party plugin: LinkReader or WebPilot

Quickstart

Setup

To install the required packages for this plugin, run the following command:

pip install -r requirements.txt

To run the plugin, enter the following command:

python main.py

demo

Plugin Deploy (Replit)

  1. Open Replit and click the Create Repl button.
  2. When the pop-up window appears, click the Import from GitHub button in the top right corner.
  3. In the GitHub URL field, enter https://github.com/ethanguo770/charts-generator-chatgpt-plugin and select Python as the language.
  4. Then click the Import from GitHub button in the bottom right corner and wait for the initialization to complete.
  5. Click the Run button and wait for the execution to finish.

Once the local server is running:

Navigate to https://chat.openai.com. In the Model drop down, select "Plugins". Select "Plugin store". Select "Develop your own plugin". Enter in localhost:5003 since this is the URL the server is running on locally, then select "Find manifest file". The plugin should now be installed and enabled!

Getting help

If you run into issues or have questions building a plugin, please join our Developer community forum.