Code Monkey home page Code Monkey logo

guardrails's Introduction

Reflex Chat App

A user-friendly, highly customizable Python web app designed to demonstrate LLMs in a ChatGPT format.

icon

Getting Started

You'll need a valid OpenAI subscription - save your API key under the environment variable OPENAI_API_KEY:

export OPENAI_API_KEY="YOUR_OPENAI_API_KEY" # replace me!

๐Ÿงฌ 1. Clone the Repo

git clone https://github.com/reflex-dev/reflex-chat.git

๐Ÿ“ฆ 2. Install Reflex

To get started with Reflex, you'll need:

  • Python 3.7+
  • Node.js 12.22.0+ (No JavaScript knowledge required!)
  • Pip dependencies: reflex, openai

Install pip dependencies with the provided webui/requirements.txt:

pip install -r reflex-chat/webui/requirements.txt

๐Ÿš€ 3. Run the application

Navigate to the webui/ directory, initialize and run the app:

cd reflex-chat/webui/
reflex init
reflex run

Features

  • 100% Python-based, including the UI, using Reflex
  • Create and delete chat sessions
  • The application is fully customizable and no knowledge of web dev is required to use it.
  • Easily swap out any LLM
  • Responsive design for various devices

Contributing

We welcome contributions to improve and extend the LLM Web UI. If you'd like to contribute, please do the following:

  • Fork the repository and make your changes.
  • Once you're ready, submit a pull request for review.

License

The following repo is licensed under the MIT License.

guardrails's People

Contributors

kbrgl avatar picklelo avatar alek99 avatar donaldkellett avatar milochen0418 avatar nevdelap avatar alitrack avatar kadereub avatar

Stargazers

Reflex Support avatar Vladislav Sorokin avatar

Watchers

 avatar Reflex Support 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.