Skip to content

lianghua1987/genai-python-playground

Repository files navigation

OpenAI Application

Color Palette Generator

To run application - http://localhost:5001/ python .\color_palette_generator\app.py

preview.png

GPT-3.5-turbo Chatbot(CL)

To run application - python .\chatbot\app.py --personality "rude and obnoxious"

preview.png

GPT-3.5-turbo Code Reviewer(CL)

To run application - python .\app.py .\sample\dfs.py preview.png

Spotify Playlist Generator

python -m venv .venv
.\.venv\Scripts\activate.bat
python .\app.py "Gangsta rap song from West coast" --count 8 --name  "G-Rap"

preview.png

Embeddings w/ Nomic Atlas

Application to get embedding of 5000 movies, upload to Nomic Atlas and do recommendations. (movie_embeddings_cache.pkl differs from Mac to PC)

pip install nomic
nomic login [token]

To run application - python .\app.py preview-console.png preview-upload-atlas.png preview-distance.png preview-nomic.png

Reddit Sentiment Analyzer

List 5 different cities in the States that I've lived. Go to reddit api(praw) to grab monthly submission's comment and score them into .csv file.
To run application - python .\app.py

Troubleshoot

Fetch reddit client id and secret
Tiktoken 4 ChatCompletion
How to add ipython console to pycharm preview.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published