afzal442/streamlit-wiki

Streamlit Wiki Search Powered by Snowflake Arctic Model and Replicate API

Python

0

4 commits

updated May 22, 2024

See the code

README

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

afzal442/streamlit-wiki

Streamlit Wiki Search Powered by Snowflake Arctic Model and Replicate API

Python

0

4 commits

updated May 22, 2024

See the code

README

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