Developed by Siddhant
We are utilizing the power of poetry, a dependency management toolkit for python. It is a powerful toolkit which eliminates dependency management and versioning errors for python projects. Inorder to avoid installing each dependency one at a time, poetry allows user to install all the required python dependencies with version control. To get started use the following commands:
$ pip install poetry
Once poetry is installed, navigate to the root directory of this project. Note that the project file already consist of the pyproject.toml file which indicates all the required dependencies and their version constraints. Next go to localhost directory and,
$ poetry install
Initially the above command will create a virtual environment and install all the mentioned python and backend dependencies within the virtual environment. Once installed, to load into the virtual environment use command
$ poetry shell
Once all the required python and backend dependencies exist, we can navigate to the folder localhost within the project, and use the following command to host our backend server
$ uvicorn main:app --reload
To verify that the backend server is up and running with necessary endpoints, uding any browser load https://localhost:8000/docs which should be a swagger page and documentation about the expected input and outputs for each backend end point
Developed by Siddhant
GPT-Pyneapple is a custom UI which aims to integrate the chat GPT's LLM with Pyneapple which is an open-source Python library for scalable and enriched spatial data analysis. GPT-Pyneapple uses chat GPT's superior language processing capabilities to process natural language audio and textual user queries into interpretable function calls for the Pyneapple library. This novel approach shows promising results and will keep improving with the underlying model.
Install the required frontend dependencies by first navigating to the frontend folder, and go to "frontend/gpt_frontend" install the required frontend dependencies using
$ npm install
Next inorder to start the frontend web application, use the command
$ npm start
This should load up a web application at https://localhost:3000.
The frontend should have the necessary elements to select and load a map for a selected file as well as querying elements which allow both text as well as audio querying. Note that currently, the react speech recognition library only fully supports chrome browsers, therefore it is recommended to make full use of the application, use chrome/ chromium based browsers.
Made with ❤️ by Akash Bilgi
This repository contains the frontend code for the Pyneapple App, a demo application showcasing various algorithms and visualizations.
The Pyneapple App is designed to demonstrate different algorithms and visualizations. The frontend provides an interactive user interface to interact with the algorithms and view visualizations.
- Select input files and algorithms
- Adjust algorithm parameters through dropdowns, sliders, and inputs
- View visualizations of data and results
- Node.js (https://nodejs.org/)
- Git (https://git-scm.com/)
-
Clone the repository:
-
Navigate to the frontend directory:
cd Pyneapple/frontend/query_frontend -
Install dependencies:
npm install
- Start the file server for the shp files, go to the /testData folder and run the following command:
python pyserv.py-
Start the development server:
npm start
This will launch the app in your browser at
http://localhost:3000. -
Use the app to select files, algorithms, adjust parameters, and view visualizations.
Contributions to this project are welcome. Feel free to submit issues and pull requests.
- Fork the repository.
- Create a new branch for your feature/bug fix:
git checkout -b feature/your-feature-name. - Commit your changes:
git commit -m "Add some feature". - Push to the branch:
git push origin feature/your-feature-name. - Create a pull request.
This project is licensed under the MIT License.
