NLPSM is an innovative project designed to enable non-technical users to interact with their computer systems through natural language commands, leveraging OpenAI's GPT technology. This application provides a user-friendly API setup using FastAPI to execute system-level commands securely.
- Command Execution: Execute system commands via a secure API interface.
- GPT Integration: Utilizes GPT to understand and process natural language commands.
- FastAPI Framework: Built on FastAPI for robust, scalable, and fast web services.
- Python 3.8 or higher
- pip (Python package installer)
-
Clone the repository:
git clone https://github.com/nlpsm/lili.git
-
Navigate to the project directory:
cd NLPSM-master
-
Install required Python packages:
pip install -r requirements.txt
Execute the following command to run the FastAPI server:
uvicorn app.nlpsm:app --reload
This will start the FastAPI server on http://127.0.0.1:8000
. The server will automatically reload for code changes.
You can interact with the system by sending HTTP requests to http://127.0.0.1:8000
. Example commands include:
- Fetch System Date:
GET /date
- List Directory Contents:
GET /list-dir?path=<path>
Contributions are welcome! Please fork the repository and submit pull requests with your proposed changes.
For security concerns, please refer to the SECURITY.md file.
This project is licensed under the MIT License - see the LICENSE.txt file for details.