Skip to content

Feat: Create FastAPI - #15

Open
pa-t wants to merge 3 commits into
EvanZhouDev:mainfrom
pa-t:main
Open

Feat: Create FastAPI#15
pa-t wants to merge 3 commits into
EvanZhouDev:mainfrom
pa-t:main

Conversation

@pa-t

@pa-t pa-t commented Jan 9, 2025

Copy link
Copy Markdown

Created a FastAPI to let users interface with open genmoji through API requests.

Current steps to get running

  1. In the subdirectory genmoji/ copy the .env.sample and create a .env then add your huggingface token
  2. Follow these steps to set up a conda env and run the api
cd gemoji/
conda create -n 'open_genmoji' python=3.11 -y
conda activate open_genmoji
pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 8000 --workers 2

If there is interest in merging this in, the README should be updated with instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant