Hugo's Portfolio

Refinaid

August 27, 2024 (2mo ago)

šŸ» Enabling everyone unfamiliar with programming languages to easily engage with AI and open the doors to the world of the future. (AI4ALL)

šŸ’» Source CodeĀ Ā ā€¢Ā  šŸŒ WebsiteĀ Ā ā€¢Ā  šŸ“š Docs
Refinaid: Bridging the Gap with AI For Everyone
Refinaid: Bridging the Gap with AI For Everyone

šŸ“ Abstract

Hi there šŸ‘‹šŸ» This is Refinaid. Refinaid is an open-source learning platform enabling everyone unfamiliar with programming languages to easily engage with AI and open the doors to the world of the future.

šŸŒ Contributing

Forking this Repository:

Fork the refinaid repository into your own workspace.

Cloning the Repository to Your Workspace:

1$ git clone git@github.com:<your_workspace_name>/refinaid.git

Setting Upstream Remote:

1$ git remote add upstream git@github.com:1chooo/refinaid.git 2 3$ git remote -v 4origin git@github.com:<your_user_name>/refinaid.git (fetch) 5origin git@github.com:<your_user_name>/refinaid.git (push) 6upstream git@github.com:1chooo/refinaid.git (fetch) 7upstream git@github.com:1chooo/refinaid.git (push)

Pull Requests:

If you have any valuable ideas to contribute, please create a pull request and provide details about the outstanding work you've done.

Issue Reporting:

If you encounter any problems while contributing to this project, please report the issues in the refinaid/issues section.

Important

Make sure to synchronize and update your repository before initiating a pull request:

  1. Run git stash save to temporarily stash your local changes.
  2. Run git fetch upstream to sync the source project with your local copy.
  3. Run git checkout main to switch to the main branch.
  4. Run git merge upstream/main to merge the updated remote version into your local copy. If there are no conflicts, the update process is complete.
  5. Run git stash pop to apply your temporarily stashed changes back to your working directory. Resolve any conflicts if necessary.

šŸ¤– Run the Services

Python version python3.11.1 with gradio, scikit-learn, seaborn, pandas, numpy, matplotlib, joblib

Clone the Repository

Make sure you have git installed on your machine. If not, you can download it here.

1$ git clone git@github.com:<your_user_name>/refinaid.git

Access the Application

1# If you want to access to Simple AI 2$ cd refinaid/apps/simple-ai 3 4# If you want to access to Chatger 5$ cd refinaid/apps/chatger

Build venv for MacOS/Linux

1$ pip3 install virtualenv 2$ python3.11 -m venv venv 3$ source venv/bin/activate 4$ pip install -r requirements.txt 5$ deactivate 6$ rm -rf venv # remove the venv

Build venv for Windows

1$ pip install virtualenv 2$ python3.11 -m venv venv 3$ venv\Scripts\activate 4$ pip install -r requirements.txt 5$ deactivate 6$ rmdir /s venv # remove the venv

Run web app

1$ ./scripts/build.sh 2 3# run with uvicorn 4$ uvicorn app.main:app --host 0.0.0.0 --port 8080 --reload 5 6# And open your browser and visit http://localhost:8080

Note

We have streamlined and unified the file structure to enable developers to easily access and launch SIMPLE-AI and Chatger using a consistent approach. Additionally, we are actively planning to adopt a modular development approach to enhance the application's deployment and functionality.

Build Docker Image

1# For Simple AI 2$ docker build -t refinaid-simple-ai:latest . 3$ docker run -d -p 8080:8080 refinaid-simple-ai:latest 4 5# For Chatger 6$ docker build -t refinaid-chatger:latest . 7$ docker run -d -p 8080:8080 refinaid-chatger:latest

šŸ“² Contact

Hugo ChunHo Lin

šŸ“© E-mail: hugo970217@gmail.com
šŸ§³ Linkedin: Hugo ChunHo Lin
šŸ‘ØšŸ»ā€šŸ’» GitHub: 1chooo

šŸŖŖ License

Released under Apache-2.0 license by Hugo ChunHo Lin.

This software can be modified and reused without restriction. The original license must be included with any copies of this software. If a significant portion of the source code is used, please provide a link back to this repository.