Streamlit Wiki Search Powered by Snowflake Arctic Model and Replicate API
Python
0
4 commits
updated May 22, 2024
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.
Install requirements
pip install -r requirements.txt
Add your API token to your secrets file
Create a .streamlit folder with a secrets.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
Streamlit Wiki Search Powered by Snowflake Arctic Model and Replicate API
Python
0
4 commits
updated May 22, 2024
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.
Install requirements
pip install -r requirements.txt
Add your API token to your secrets file
Create a .streamlit folder with a secrets.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