Giter VIP home page Giter VIP logo

stream-chat's Introduction

Streamlit App Readme

This readme file provides instructions for running the Streamlit app "Stream Chat" and highlights the steps required to set up the application environment. Please follow the guidelines below to get the app up and running on your local machine.

Screenshot

Prerequisites

Before running the Streamlit app, ensure you have the following components installed:

  1. Python 3.6 or later
  2. pip (Python package manager)

Setup

  1. Clone the repository:
git clone https://github.com/zshancs/stream-chat.git
cd stream-chat
  1. Create a virtual environment (optional but recommended):
# On macOS and Linux
python3 -m venv venv

# On Windows
python -m venv venv
  1. Activate the virtual environment:
# On macOS and Linux
source venv/bin/activate

# On Windows
venv\Scripts\activate
  1. Install required dependencies:
pip install -r requirements.txt

Environment Variable

The Streamlit app relies on a secret named OPENAI_API_KEY, which is required for authentication purposes. Before running the app, you need to set this environment variable. In the .streamlit/secrets.toml file add:

OPENAI_API_KEY=your_openai_api_key

Replace your_openai_api_key with the actual API key provided by OpenAI.

Running the Streamlit App

Once you have completed the setup and set the OPENAI_API_KEY environment variable, you can run the Streamlit app:

streamlit run main.py

This will start the app, and you should be able to access it by opening your web browser and navigating to the provided URL (usually http://localhost:8501).

Additional Information

  • The Streamlit app is configured to use the OPENAI_API_KEY environment variable for security purposes. Please ensure that you keep this key confidential and avoid sharing it with others.

Enjoy using "Stream Chat" with Streamlit! If you have any feedback or suggestions, we'd love to hear from you: email at [email protected] . "# stream-chat"

stream-chat's People

Contributors

zshancs avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.