Spaces:
Sleeping
GPT_MAVPlot
MAVPlot is a Python-based project which uses Gradio as an interface and GPT-X powered by OpenAI as a chatbot to generate and plot MAVLink data. It provides an easy-to-use, chatbot-like interface for users to describe the plot they would like to generate.
Architecture
Installation
Clone the repository:
git clone https://github.com/yourusername/mavplot.git
Setup Python Virtual Environment:
python3 -m venv .venv
Activate the virtual environment:
source .venv/bin/activate
Install the requirements:
pip install -r requirements.txt
Setup .env File
Copy the template.env
file to a file named .env
in your root directory. Add your Openai API key to the file
Usage
After installing all dependencies, run the main script using:
python gpt_mavplot.py
A web-based Gradio interface will launch. You can upload a mavlink tlog then prompt the bot to generate plots from the log. The chatbot will process your request and generate the corresponding plot, which will be displayed in the chat interface. The script use to generate the log will also be posted to the chat interface.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.