Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pyneapple demo

Requirements

Python

Backend

Frontend

Pyneapple backend

Developed by Siddhant

Installation

Dependency Management

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

Hosting the backend server

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

GPT-Pyneapple

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.

Starting the frontend

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.

Pyneapple Frontend

Made with ❤️ by Akash Bilgi

This repository contains the frontend code for the Pyneapple App, a demo application showcasing various algorithms and visualizations.

Pyneapple App Demo

Table of Contents

Introduction

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.

Features

  • Select input files and algorithms
  • Adjust algorithm parameters through dropdowns, sliders, and inputs
  • View visualizations of data and results

Getting Started

Prerequisites

Installation

  1. Clone the repository:

  2. Navigate to the frontend directory:

    cd Pyneapple/frontend/query_frontend
  3. Install dependencies:

    npm install

Usage

  1. Start the file server for the shp files, go to the /testData folder and run the following command:
 python pyserv.py
  1. Start the development server:

    npm start

    This will launch the app in your browser at http://localhost:3000.

  2. Use the app to select files, algorithms, adjust parameters, and view visualizations.

Contributing

Contributions to this project are welcome. Feel free to submit issues and pull requests.

  1. Fork the repository.
  2. Create a new branch for your feature/bug fix: git checkout -b feature/your-feature-name.
  3. Commit your changes: git commit -m "Add some feature".
  4. Push to the branch: git push origin feature/your-feature-name.
  5. Create a pull request.

License

This project is licensed under the MIT License.

About

The repo for hosting the backend and the frontend of pyneapple webapp

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages