Custom LLM Development
- Create a
.envfile and add there your OpenAI API key. Its content should be something like:
OPENAI_API_KEY="sk-..."- Create a local virtual environment, for example using the
venvmodule. Then, activate it.
python -m venv venv
source venv/bin/activate- Install the dependencies.
pip install -r requirements.txt- Launch the Gradio app.
python app.py