From f840a7f3211f5ad76df690ccd28f92005deadef5 Mon Sep 17 00:00:00 2001 From: James Shiffer <jshiffer@ucla.edu> Date: Sun, 7 Apr 2024 16:08:49 -0700 Subject: [PATCH] don't commit the token this time --- .gitignore | 3 +++ README.md | 2 +- config.py => config_example.py | 0 3 files changed, 4 insertions(+), 1 deletion(-) rename config.py => config_example.py (100%) diff --git a/.gitignore b/.gitignore index da62613..437f417 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# Config +config.py + # Unsloth _unsloth_sentencepiece_temp/ diff --git a/README.md b/README.md index 6c5d0dd..b589825 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,6 @@ Set up [Pytorch](https://pytorch.org/get-started/locally/) followed by [Unsloth] Install the `ffmpeg` and `sox` packages, you may have to get ffmpeg from `conda-forge` if it complains about missing shared libraries when you try to run it. -Run `pip -r requirements.txt` to get the rest of the dependencies. +Run `pip -r requirements.txt` to get the rest of the dependencies. Then, copy `config_example.py` to `config.py` and change the settings accordingly. Start the web server using `uvicorn api:app --host=0.0.0.0 --port=8000`. You can test the endpoints at `http://localhost:8000/docs`. diff --git a/config.py b/config_example.py similarity index 100% rename from config.py rename to config_example.py