Skip to content

Streamlit Wiki Search Powered by Snowflake Arctic Model and Replicate API

License

Notifications You must be signed in to change notification settings

afzal442/streamlit-wiki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streamlit Wikisearch App

A couple of AI demo applications built with Streamlit

Getting your own Replicate API token

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.

Setup Instructions

Prerequisites

  • Python 3.8 or later 🐍
  • pip3 πŸ“¦

Installation

  1. Install requirements

       pip install -r requirements.txt
  2. 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).

  3. 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

About

Streamlit Wiki Search Powered by Snowflake Arctic Model and Replicate API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages