A couple of AI demo applications built with Streamlit
To use this app, you'll need to get your own Replicate API token.
After creating a Replicate account, you can access your API token from this page.
- Python 3.8 or later π
- pip3 π¦
-
Install requirements
pip install -r requirements.txt
-
Add your API token to your secrets file
Create a.streamlit
folder with asecrets.toml
file inside.mkdir .streamlit cd .streamlit touch secrets.toml
Use your text editor or IDE of choice to add the following to
secrets.toml
:REPLICATE_API_TOKEN = "your API token here"
Learn more about Streamlit secrets management in our docs.
Alternatively, you can enter your Replicate API token via the
st.text_input
widget in the app itself (once you're running the app). -
Run the Streamlit app Note:
streamlit_wiki_app.py
is an app which passes user input to Arctic and returns Arctic's response.
To run the app, enter:
cd ..
streamlit run streamlit_wiki_app.py