GithubHelp home page GithubHelp logo

b5marwan / webchat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thaitran/webchat

0.0 0.0 0.0 252 KB

This is a chatbot built using Gradio that can access Google Search and webpages to answer questions. Supports GPT-3.5, GPT-4, Claude 2, and Llama 2.

License: MIT License

Python 100.00%

webchat's Introduction

WebChat

This is a chatbot built using Gradio that can access Google Search and webpages to answer questions:

See this article for an overview of the implementation.

demo

Installation

Clone this repo:

git clone https://github.com/thaitran/WebChat.git
cd WebChat

Install required Python modules:

pip install -r requirements.txt

Setup access to LLMs

If you'd like to use GPT-3.5 or GPT-4, sign up for an OpenAI developer account, obtain an API key from https://platform.openai.com/account/api-keys and then set the following environment variable:

export OPENAI_API_KEY=<your key>

If you'd like to use Claude 2, sign up for an Anthropic developer account, obtain an API key from https://console.anthropic.com/account/keys and then set the following environment variable:

export ANTHROPIC_API_KEY=<your key>

If you'd like to use Llama 2, sign up for a Hugging Face Pro account -- this gives you unlimited usage of Llama 2 inference for $9/month. Obtain an access token from https://huggingface.co/settings/tokens and then run:

huggingface-cli login

or set the following environment variable:

export HUGGING_FACE_HUB_TOKEN=<your token>

Running the app

python app.py

Then open your web browser to http://127.0.0.1:7860

Feedback

If you'd like to provide feedback, you can reach the author at:

webchat's People

Contributors

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