from dotenv import load_dotenv
load_dotenv()
app.launch_demo()
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
This file will become your README and also the index of your documentation.
Running on local URL: http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
or
git clone
the repo
Make sure to use the version of python specified in py_version.txt
Create a virtual environment.
Activate the env and install dependencies.
To make the Jupyter environment, git friendly: nbdev_install_hooks
If you want to render documentation locally, you will want to install Quarto.
nbdev_install_quarto
Put API secrets in .env
Edit .env with your secret key(s). Only OPEN_AI_KEY
is required.
Then start the Gradio demo from within the virtual environment.
Preview documentation
If a new dependency for development is helpful for developers, add it to dev.txt
.
If it is a dependency for the app that is imported in source code, add it to core.txt
.
Then run:
This will update our requirements.txt
to include the dependency as it should be pinned in the environment.
Make changes in /nbs
.
Update the package files with nbdev_export
then reimport with pip install -e '.[dev]'
Preview doc nbdev_preview
Build docs, test and update README nbdev_prepare