Skip to content

sasha42/Glint

Repository files navigation

❇️ Glint

Glint uses AI to tell the story of your data.

Use the magic of AI to learn more about your data. Drag your data in, and see Glint tell a story from your CSV file. Please note that this is a research project, it is not advised to use this in production.

Glint demo video

Setup

You can get up and running quickly with Docker. Once you have docker running on your computer, you can run the following command to build and run Glint:

docker-compose up

You can now access it through your browser 😄


The below section details how you can get a development server running. You won't need to do this unless you want to fiddle with the internals of Glint. If you do want to modify the files, then it would be best to follow the steps below.

Backend

The backend is written in flask and relies on redis-server. Whenever there is a new file uploaded, Glint will run a series of jupyter notebooks using papermill. The output will be saved as json files that can be served to the consumer.

# install requirements in a python3 environment
pip install -r requirements.txt

# start redis server
redis-server &

# start app.py for static files and API
python app.py &

# start update.py for running notebooks asyncronously
python update.py

Frontend

The frontend uses react to provide a user interface to Glint. It is compiled with webpack and then served through the flask backend - you only need to run the code below if you're going to modify the frontend.

cd static/
npm i
npm run watch

By default, the frontend will talk to the API that is present in static/.env. If you would like to change this, please update the .env file and then run the following command to recompile the frontend:

cd static/
npm run build

You can then run the following command to rebuild docker, which will pull the appropriate static files:

cd ..
docker-dompose build

Built with love in San Francisco ❤️

About

Glint uses AI to tell the story of your data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published