CoolFace
Apppublic

dl4ds/dl4ds_tutor

sourceHugging Faceupdated 2y agoView on Hugging Face
1likes
App README

DL4DS Tutor ๐Ÿƒ

Build Status License GitHub stars PRs Welcome

Check out the configuration reference at Hugging Face Spaces Config Reference.

You can find a "production" implementation of the Tutor running live at DL4DS Tutor from the Hugging Face Space. It is pushed automatically from the main branch of this repo by this Actions Workflow upon a push to main.

A "development" version of the Tutor is running live at DL4DS Tutor -- Dev from this Hugging Face Space. It is pushed automatically from the dev_branch branch of this repo by this Actions Workflow upon a push to dev_branch.

Setup

Please visit setup for more information on setting up the project.

Running Locally

  1. 1.Clone the Repository
bash
   git clone https://github.com/DL4DS/dl4ds_tutor
  1. 1.Create your app in the apps folder. (An example is the apps/ai_tutor app)
   cd apps
   mkdir your_app
  1. 1.Put your data under the `apps/your_app/storage/data` directory
  2. 2.Add URLs in the urls.txt file.
  3. 3.Add other PDF files in the apps/your_app/storage/data directory.
  1. 1.To test Data Loading (Optional)
bash
   cd apps/your_app
   python -m modules.dataloader.data_loader --links "your_pdf_link" --config_file config/config.yml --project_config_file config/project_config.yml
  1. 1.Create the Vector Database
bash
   cd apps/your_app
   python -m modules.vectorstore.store_manager --config_file config/config.yml --project_config_file config/project_config.yml
  1. 1.Run the FastAPI App
bash
   cd apps/your_app
   uvicorn app:app --port 7860 

Documentation

Please visit the docs for more information.

Docker

The HuggingFace Space is built using the Dockerfile in the repository. To run it locally, use the Dockerfile.dev file.

bash
docker build --tag dev  -f Dockerfile.dev .
docker run -it --rm -p 7860:7860 dev

Contributing

Please create an issue if you have any suggestions or improvements, and start working on it by creating a branch and by making a pull request to the dev_branch.

Please visit contribute for more information on contributing.

Future Work

For more information on future work, please visit roadmap.