Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Create FastAPI #15

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Feat: Create FastAPI #15

wants to merge 3 commits into from

Conversation

pa-t
Copy link

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

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